aboutsummaryrefslogtreecommitdiff
path: root/src/backend/commands/tablecmds.c
diff options
context:
space:
mode:
authorPeter Eisentraut <peter_e@gmx.net>2018-07-17 09:48:29 +0200
committerPeter Eisentraut <peter_e@gmx.net>2018-08-17 22:08:21 +0200
commite4597ee65d683e11a57a4b7f597807ebf44b6cf1 (patch)
treec50ca6a729c9bdab71071f6f111832a1e6022767 /src/backend/commands/tablecmds.c
parent520acab171244b55d816c70b9a89280b09937925 (diff)
downloadpostgresql-e4597ee65d683e11a57a4b7f597807ebf44b6cf1.tar.gz
postgresql-e4597ee65d683e11a57a4b7f597807ebf44b6cf1.zip
InsertPgAttributeTuple() to set attcacheoff
InsertPgAttributeTuple() is the interface between in-memory tuple descriptors and on-disk pg_attribute, so it makes sense to give it the job of resetting attcacheoff. This avoids having all the callers having to do so. Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us>
Diffstat (limited to 'src/backend/commands/tablecmds.c')
-rw-r--r--src/backend/commands/tablecmds.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/backend/commands/tablecmds.c b/src/backend/commands/tablecmds.c
index f6210226e98..7cedc28c6b5 100644
--- a/src/backend/commands/tablecmds.c
+++ b/src/backend/commands/tablecmds.c
@@ -5522,7 +5522,6 @@ ATExecAddColumn(List **wqueue, AlteredTableInfo *tab, Relation rel,
attribute.atttypid = typeOid;
attribute.attstattarget = (newattnum > 0) ? -1 : 0;
attribute.attlen = tform->typlen;
- attribute.attcacheoff = -1;
attribute.atttypmod = typmod;
attribute.attnum = newattnum;
attribute.attbyval = tform->typbyval;