Skip to content

Commit 36af1dd

Browse files
committed
Make ALTER TABLE ADD SERIAL work reasonably in inheritance cases, too.
1 parent 6121aed commit 36af1dd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/backend/commands/tablecmds.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $PostgreSQL: pgsql/src/backend/commands/tablecmds.c,v 1.114 2004/06/10 18:25:02 tgl Exp $
11+
* $PostgreSQL: pgsql/src/backend/commands/tablecmds.c,v 1.115 2004/06/10 18:34:45 tgl Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -2706,6 +2706,8 @@ ATPrepAddColumn(List **wqueue, Relation rel, bool recurse,
27062706
/* Child should see column as singly inherited */
27072707
colDefChild->inhcount = 1;
27082708
colDefChild->is_local = false;
2709+
/* and don't make a support dependency on the child */
2710+
colDefChild->support = NULL;
27092711

27102712
ATOneLevelRecursion(wqueue, rel, childCmd);
27112713
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy