Skip to content

Bug in the description of the UNIQUE constraint in the Constraints section #22

Open
@alfonso-higuera

Description

@alfonso-higuera

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions