CREATE UNIQUE INDEX name ON table (column [, ...]) [ NULLS [ NOT ] DISTINCT ];

From: PG Doc comments form <noreply(at)postgresql(dot)org>
To: pgsql-docs(at)lists(dot)postgresql(dot)org
Cc: tim(dot)dadd(at)gmail(dot)com
Subject: CREATE UNIQUE INDEX name ON table (column [, ...]) [ NULLS [ NOT ] DISTINCT ];
Date: 2024-11-10 11:36:32
Message-ID: 173123859233.708.15625173411353921889@wrigleys.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-docs

The following documentation comment has been logged on the website:

Page: https://www.postgresql.org/docs/17/indexes-unique.html
Description:

This says it works from 12 onwards but actually from 15 onwards
Prior to 15 unique partial indexes needed creating, e.g. (parent_ID, NAME)
where parent_ID is not null and (NAME) where parent_id is null

Responses

Browse pgsql-docs by date

  From Date Subject
Next Message PG Doc comments form 2024-11-11 01:08:59 Documentation error in tutorial page for Window Functions
Previous Message PG Doc comments form 2024-11-06 21:58:13 Improved security for https://www.postgresql.org/docs/current/install-make.html