Re: DISTINCT on jsonb fields and Indexes - Mailing list pgsql-general

From Michael Lewis
Subject Re: DISTINCT on jsonb fields and Indexes
Date
Msg-id CAHOFxGoMiX+Vc=E_t5yxaWZbe2+cbU-68bWJYge_AB+foVfDTw@mail.gmail.com
Whole thread Raw
In response to Re: DISTINCT on jsonb fields and Indexes  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: DISTINCT on jsonb fields and Indexes  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: DISTINCT on jsonb fields and Indexes  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
In the example of "select distinct expression", the planner will never notice
that that expression has anything to do with an index.

Thanks for that explanation. I assume re-writing as a 'group by' would have no bearing on that planner decision.

pgsql-general by date:

Previous
From: "Jim Hurne"
Date:
Subject: RE: autovacuum failing on pg_largeobject and disk usage of thepg_largeobject growing unchecked
Next
From: Tom Lane
Date:
Subject: Re: DISTINCT on jsonb fields and Indexes