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

Commita22d6a2

Browse files
committed
pg_dump: Add missing relkind case
Checking for RELKIND_MATVIEW was forgotten inguessConstraintInheritance(). This isn't a live problem, since it ischecked in flagInhTables() which relkinds can have parents, and thoseentries will have numParents==0 after that. But after discussion itwas felt that this place should be kept consistent withflagInhTables() and flagInhAttrs().Reviewed-by: Michael Paquier <michael@paquier.xyz>Discussion:https://www.postgresql.org/message-id/flat/a574c8f1-9c84-93ad-a9e5-65233d6fc00f@enterprisedb.com
1 parentf2c52ee commita22d6a2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

‎src/bin/pg_dump/pg_dump.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2762,9 +2762,10 @@ guessConstraintInheritance(TableInfo *tblinfo, int numTables)
27622762
TableInfo **parents;
27632763
TableInfo *parent;
27642764

2765-
/*Sequences and views never have parents */
2765+
/*Some kinds never have parents */
27662766
if (tbinfo->relkind == RELKIND_SEQUENCE ||
2767-
tbinfo->relkind == RELKIND_VIEW)
2767+
tbinfo->relkind == RELKIND_VIEW ||
2768+
tbinfo->relkind == RELKIND_MATVIEW)
27682769
continue;
27692770

27702771
/* Don't bother computing anything for non-target tables, either */

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp