3 ms·
Primary keys on postgresql are unique (and non null). It’s not possible to change that behavior as it’s the definition of a PK field. You can thus create more
by dfee 8y ago
Primary keys on postgresql are unique (and non null). It’s not possible to change that behavior as it’s the definition of a PK field.
You can thus create more UUID fields that are unique and non-null by specifying that instead of “primary key” on column creation.
https://www.postgresql.org/docs/8.1/static/ddl-constraints.html https://www.postgresql.org/docs/8.1/static/ddl-constraints.h...