diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2004-06-10 18:34:45 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2004-06-10 18:34:45 +0000 |
commit | 36af1dd299e994f24814bdfb3e72a1ac1a98d751 (patch) | |
tree | e0ec06e0b92ce5bcca5bf78468be5638225ae91b /src/backend/commands/tablecmds.c | |
parent | 6121aed8a51966321a43e59750a7a6b9bb6eca36 (diff) | |
download | postgresql-36af1dd299e994f24814bdfb3e72a1ac1a98d751.tar.gz postgresql-36af1dd299e994f24814bdfb3e72a1ac1a98d751.zip |
Make ALTER TABLE ADD SERIAL work reasonably in inheritance cases, too.
Diffstat (limited to 'src/backend/commands/tablecmds.c')
-rw-r--r-- | src/backend/commands/tablecmds.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/backend/commands/tablecmds.c b/src/backend/commands/tablecmds.c index e256a92833d..3979335313b 100644 --- a/src/backend/commands/tablecmds.c +++ b/src/backend/commands/tablecmds.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/commands/tablecmds.c,v 1.114 2004/06/10 18:25:02 tgl Exp $ + * $PostgreSQL: pgsql/src/backend/commands/tablecmds.c,v 1.115 2004/06/10 18:34:45 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -2706,6 +2706,8 @@ ATPrepAddColumn(List **wqueue, Relation rel, bool recurse, /* Child should see column as singly inherited */ colDefChild->inhcount = 1; colDefChild->is_local = false; + /* and don't make a support dependency on the child */ + colDefChild->support = NULL; ATOneLevelRecursion(wqueue, rel, childCmd); } |