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

Commit9f2c4ed

Browse files
committed
Remove bogus Assert in foreign key cloning code
This Assert was trying to ensure that the number of columns in the foreignkey being cloned was the same number of attributes in the parentRel.  Ofcourse, it's perfectly valid to have columns in the table which are notpart of the foreign key constraint. It appears that this Assert wasmisunderstanding that.Reported-by: Rajkumar RaghuwanshiReviewed-by: amul sulDiscussion:https://postgr.es/m/CAKcux6=z1dtiWw5BOpqDx-U6KTiq+zD0Y2m810zUtWL+giVXWA@mail.gmail.com
1 parentaaf069a commit9f2c4ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/backend/commands/tablecmds.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9043,7 +9043,7 @@ CloneFkReferenced(Relation parentRel, Relation partitionRel)
90439043
conpfeqop,
90449044
conppeqop,
90459045
conffeqop);
9046-
Assert(numfks == attmap->maplen);
9046+
90479047
for (int i = 0; i < numfks; i++)
90489048
mapped_confkey[i] = attmap->attnums[confkey[i] - 1];
90499049

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp