Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit36af1dd

Browse files
committed
Make ALTER TABLE ADD SERIAL work reasonably in inheritance cases, too.
1 parent6121aed commit36af1dd

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)

[8]ページ先頭

©2009-2025 Movatter.jp