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
In the Constraints section the following is stated:
UNIQUE is another constraint that dictates that this column must be unqiue amongst all other columns
I don't think this is accurate, or at least I feel this is easy to misinterpret. According to section 5.4.3. Unique Constraints of the PostgreSQL (version 14) manual
Unique constraints ensure that the data contained in a column, or a group of columns, is unique among all the rows in the table
So, to my understanding, the UNIQUE constraint does not constraint a column (or group of columns) relative to "all the other columns" but instead it constraint the values that a column (or group or columns) can have relative to the values in that column for all the rows in the table.
The text was updated successfully, but these errors were encountered:
In the Constraints section the following is stated:
I don't think this is accurate, or at least I feel this is easy to misinterpret. According to section 5.4.3. Unique Constraints of the PostgreSQL (version 14) manual
So, to my understanding, the
UNIQUE
constraint does not constraint a column (or group of columns) relative to "all the other columns" but instead it constraint the values that a column (or group or columns) can have relative to the values in that column for all the rows in the table.The text was updated successfully, but these errors were encountered: