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

Commitad9f08f

Browse files
committed
Fix ATSimpleRecursion() to allow recursion from a foreign table.
This is necessary in view of the changes to allow foreign tables to befull members of inheritance hierarchies, but I (tgl) unaccountably missedit in commitcb1ca4d.Noted by Amit Langote, patch by Etsuro Fujita
1 parentd3821e7 commitad9f08f

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

‎src/backend/commands/tablecmds.c

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4367,10 +4367,12 @@ ATSimpleRecursion(List **wqueue, Relation rel,
43674367
AlterTableCmd*cmd,boolrecurse,LOCKMODElockmode)
43684368
{
43694369
/*
4370-
* Propagate to children if desired.Non-table relations never have
4371-
* children, so no need to searchin that case.
4370+
* Propagate to children if desired.Only plain tables and foreign tables
4371+
*havechildren, so no need to searchfor other relkinds.
43724372
*/
4373-
if (recurse&&rel->rd_rel->relkind==RELKIND_RELATION)
4373+
if (recurse&&
4374+
(rel->rd_rel->relkind==RELKIND_RELATION||
4375+
rel->rd_rel->relkind==RELKIND_FOREIGN_TABLE))
43744376
{
43754377
Oidrelid=RelationGetRelid(rel);
43764378
ListCell*child;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp