Identity columns
SQL-standard GENERATED ... AS IDENTITY columns backed by owned sequences. Introduced in PostgreSQL 10.
Versions
- PostgreSQL 17 · shipped · improved · moderate · 7 commits · +739 / -106 lines
Threads
- [PATCH] Fix pg_dump emitting OVERRIDING SYSTEM VALUE for tables with dropped identity columns
- pg_dump: drop column default before adding identity when needed
- Does RENAME TABLE rename associated identity sequence?
- BUG #18886: identity duplicate key
- SEQUENCE NAME syntax not documented for ALTER TABLE
- pg_dump crash on identity sequence with not loaded attributes
- "5.3. Identity Columns" Incorrect Usage of "VALUE" in Documentation
- FOREIGN TABLE and IDENTITY columns
- BUG #18645: Change between 16 and 17 when attaching partitions and the root tbl has identity col
- BUG #18618: pg_upgrade from 14 to 15+ fails for unlogged table with identity column
- BUG #18543: Mistake in docs example
- Avoid possible dereference null pointer (src/backend/catalog/pg_depend.c)
- partitioning and identity column
- Adding a pg_get_owned_sequence function?
- ALTER TABLE "table" ALTER COLUMN "id" SET RESTART WITH nnn raises error
- [PATCH] Improve tab completion for ALTER TABLE on identity columns
- future of serial and identity columns
- Should we support new definition for Identity column : GENERATED BY DEFAULT ON NULL?
- BUG #17202: GENERATED BY DEFAULT AS IDENTITY not inherited (but SERIAL is)
- inconsistent behavior with "GENERATED BY DEFAULT AS IDENTITY"
- PGSQL bug - "Column ??? is an identity column defined as GENERATED ALWAYS.",
- BUG #16913: GENERATED AS IDENTITY column nullability is affected by order of column properties
- BUG #16969: INSERT of multiple rows into GENERATED ALWAYS AS IDENTITY column with DEFAULT value is broken.
- BUG #16870: ADD COLUMN IF NOT EXISTS with GENERATED ALWAYS AS IDENTITY can cause duplicate sequence
- Identity column behavior discrepancies when inserting one or many rows
- INSERT ... OVERRIDING USER VALUE vs GENERATED ALWAYS identity columns
- Proposal: Better generation of values in GENERATED columns.
- The serial pseudotypes
- Identity columns should own only one sequence
- COPY command on a table column marked as GENERATED ALWAYS
- identity not working with inherited table
- BUG #15631: Generated as identity field in a temporary table with on commit drop corrupts system catalogs
- IDENTITY columns are NOT NULL automatically
- BUG #15343: Segmentation fault using pg_dump with --exclude-table if table contains identity column
- BUG #15096: Unable to CREATE TABLE LIKE with bigint identity column
- BUG #14952: COPY fails to fill in IDENTITY column default value
- pgsql: Prohibit identity columns on typed tables and partitions
- BUG #14813: pg_get_serial_sequence does not return seqence name for IDENTITY columns
- Mention new `GENERATED … AS IDENTITY` feature in the `Serial Types` page ?
- Inadequate infrastructure for NextValueExpr
- BUG #14756: Inserting row with PK IDENTITY column fails 1st time
- BUG #14718: unable to update table with identity column GENERATED ALWAYS
- identity columns