Bookmark: correct search with postgres . fix #866