diff options
author | Peter Eisentraut <peter@eisentraut.org> | 2023-10-05 16:17:16 +0200 |
---|---|---|
committer | Peter Eisentraut <peter@eisentraut.org> | 2023-10-05 16:20:46 +0200 |
commit | 6d341407a6e34cd6857cf55ee4757397286542db (patch) | |
tree | 8d712941a9fc6cd9958d542665b0b90363a80e71 /src/backend/commands/tablecmds.c | |
parent | e29c46439511a2ba8b447079f2308384a4228c92 (diff) | |
download | postgresql-6d341407a6e34cd6857cf55ee4757397286542db.tar.gz postgresql-6d341407a6e34cd6857cf55ee4757397286542db.zip |
Push attidentity and attgenerated handling into BuildDescForRelation()
Previously, this was handled by the callers separately, but it can be
trivially moved into BuildDescForRelation() so that it is handled in a
central place.
Reviewed-by: Alvaro Herrera <alvherre@alvh.no-ip.org>
Discussion: https://www.postgresql.org/message-id/flat/52a125e4-ff9a-95f5-9f61-b87cf447e4da@eisentraut.org
Diffstat (limited to 'src/backend/commands/tablecmds.c')
-rw-r--r-- | src/backend/commands/tablecmds.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/backend/commands/tablecmds.c b/src/backend/commands/tablecmds.c index 73b8dea81c8..60ede984e02 100644 --- a/src/backend/commands/tablecmds.c +++ b/src/backend/commands/tablecmds.c @@ -941,8 +941,6 @@ DefineRelation(CreateStmt *stmt, char relkind, Oid ownerId, attr->atthasdef = true; } - attr->attidentity = colDef->identity; - attr->attgenerated = colDef->generated; attr->attcompression = GetAttributeCompression(attr->atttypid, colDef->compression); if (colDef->storage_name) attr->attstorage = GetAttributeStorage(attr->atttypid, colDef->storage_name); |