pgsql: Remove bogus Assert in foreign key cloning code - Mailing list pgsql-committers

From David Rowley
Subject pgsql: Remove bogus Assert in foreign key cloning code
Date
Msg-id E1jRCPE-0005WO-44@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/9f2c4edec2e2182a2fef8495efdaf90a65d64e6c

Modified Files
--------------
src/backend/commands/tablecmds.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)


pgsql-committers by date:

Previous
From: Peter Eisentraut
Date:
Subject: pgsql: Remove HEAPDEBUGALL
Next
From: Tom Lane
Date:
Subject: pgsql: Doc: update section 9.11 for new function table layout.