You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CREATE UNIQUE INDEX <replaceable>name</replaceable> ON <replaceable>table</replaceable> (<replaceable>column</replaceable> <optional>, ...</optional>);
648
647
</synopsis>
649
648
Currently, only B-tree indexes can be declared unique.
650
649
</para>
@@ -653,9 +652,7 @@ CREATE UNIQUE INDEX <replaceable>name</replaceable> ON <replaceable>table</repla
653
652
When an index is declared unique, multiple table rows with equal
654
653
indexed values are not allowed. Null values are not considered
655
654
equal. A multicolumn unique index will only reject cases where all
656
-
indexed columns are equal in multiple rows. Columns included with clause
657
-
<literal>INCLUDING</literal> aren't used to enforce constraints (UNIQUE,
Copy file name to clipboardExpand all lines: doc/src/sgml/ref/create_index.sgml
+1-40Lines changed: 1 addition & 40 deletions
Original file line number
Diff line number
Diff line change
@@ -23,7 +23,6 @@ PostgreSQL documentation
23
23
<synopsis>
24
24
CREATE [ UNIQUE ] INDEX [ CONCURRENTLY ] [ [ IF NOT EXISTS ] <replaceable class="parameter">name</replaceable> ] ON <replaceable class="parameter">table_name</replaceable> [ USING <replaceable class="parameter">method</replaceable> ]
[ MATCH FULL | MATCH PARTIAL | MATCH SIMPLE ] [ ON DELETE <replaceable class="parameter">action</replaceable> ] [ ON UPDATE <replaceable class="parameter">action</replaceable> ] }
@@ -476,8 +476,8 @@ CREATE [ [ GLOBAL | LOCAL ] { TEMPORARY | TEMP } | UNLOGGED ] TABLE [ IF NOT EXI
0 commit comments