Re: Minor inaccuracy in jsonb_path_ops documentation - Mailing list pgsql-hackers

From Peter Geoghegan
Subject Re: Minor inaccuracy in jsonb_path_ops documentation
Date
Msg-id CAM3SWZSVQnieHi+56PPqGD+azt_H=9-LiFAN0txHJXGjZRLF2w@mail.gmail.com
Whole thread Raw
In response to Re: Minor inaccuracy in jsonb_path_ops documentation  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On Thu, Jul 24, 2014 at 3:02 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> The fact that the planner can avoid that in the presence of a
> simple constant comparison value doesn't make it a good idea to
> use jsonb_path_ops indexes if you do this type of query a lot,
> because in some usages the planner won't see a constant comparison
> value, and if so it'll likely choose an indexscan by default.

Well, with idiomatic usage a constant value generally will be used.
But I do see your point.

-- 
Peter Geoghegan



pgsql-hackers by date:

Previous
From: Andres Freund
Date:
Subject: Re: Why does xlog.c not treat COMMIT_PREPARED/ABORT_PREPARED as commit/abort?
Next
From: Thomas Munro
Date:
Subject: Re: SKIP LOCKED DATA (work in progress)