Re: Documentation discrepancy UNIQUE NULLS NOT DISTINCT

2023-01-19 Thread David G. Johnston
On Thu, Jan 19, 2023 at 3:41 PM Adrian Klaver wrote: > From here: > > https://www.postgresql.org/about/featurematrix/detail/392/ > > UNIQUE NULLS NOT DISTINCT > > By default, NULL values are not treated as distinct entries. Specifying > NULLS NOT DISTINCT on unique indexes / constraints will cau

Documentation discrepancy UNIQUE NULLS NOT DISTINCT

2023-01-19 Thread Adrian Klaver
From here: https://www.postgresql.org/about/featurematrix/detail/392/ UNIQUE NULLS NOT DISTINCT By default, NULL values are not treated as distinct entries. Specifying NULLS NOT DISTINCT on unique indexes / constraints will cause NULL values to be treated distinctly. From here: https://ww

Re: row estimate for partial index

2023-01-19 Thread Harmen
On Mon, Jan 16, 2023 at 09:59:38AM -0500, Tom Lane wrote: > Harmen writes: > > On Sat, Jan 14, 2023 at 11:23:07AM -0500, Tom Lane wrote: > >> If you are running a reasonably recent PG version you should be able to > >> fix that by setting up "extended statistics" on that pair of columns: > > >