mirror of
https://github.com/postgres/postgres.git
synced 2025-04-29 13:56:47 +03:00
Remove bogus Assert in foreign key cloning code
This Assert was trying to ensure that the number of columns in the foreign key being cloned was the same number of attributes in the parentRel. Of course, it's perfectly valid to have columns in the table which are not part of the foreign key constraint. It appears that this Assert was misunderstanding that. Reported-by: Rajkumar Raghuwanshi Reviewed-by: amul sul Discussion: https://postgr.es/m/CAKcux6=z1dtiWw5BOpqDx-U6KTiq+zD0Y2m810zUtWL+giVXWA@mail.gmail.com
This commit is contained in:
parent
aaf069aa34
commit
9f2c4edec2
@ -9043,7 +9043,7 @@ CloneFkReferenced(Relation parentRel, Relation partitionRel)
|
|||||||
conpfeqop,
|
conpfeqop,
|
||||||
conppeqop,
|
conppeqop,
|
||||||
conffeqop);
|
conffeqop);
|
||||||
Assert(numfks == attmap->maplen);
|
|
||||||
for (int i = 0; i < numfks; i++)
|
for (int i = 0; i < numfks; i++)
|
||||||
mapped_confkey[i] = attmap->attnums[confkey[i] - 1];
|
mapped_confkey[i] = attmap->attnums[confkey[i] - 1];
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user