aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/common
diff options
context:
space:
mode:
authorPeter Eisentraut <peter@eisentraut.org>2023-10-05 16:17:16 +0200
committerPeter Eisentraut <peter@eisentraut.org>2023-10-05 16:20:46 +0200
commit6d341407a6e34cd6857cf55ee4757397286542db (patch)
tree8d712941a9fc6cd9958d542665b0b90363a80e71 /src/backend/access/common
parente29c46439511a2ba8b447079f2308384a4228c92 (diff)
downloadpostgresql-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/access/common')
-rw-r--r--src/backend/access/common/tupdesc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/backend/access/common/tupdesc.c b/src/backend/access/common/tupdesc.c
index ce2c7bce856..c2e7b14c31e 100644
--- a/src/backend/access/common/tupdesc.c
+++ b/src/backend/access/common/tupdesc.c
@@ -856,6 +856,8 @@ BuildDescForRelation(const List *columns)
has_not_null |= entry->is_not_null;
att->attislocal = entry->is_local;
att->attinhcount = entry->inhcount;
+ att->attidentity = entry->identity;
+ att->attgenerated = entry->generated;
}
if (has_not_null)