1
0
mirror of https://github.com/postgres/postgres.git synced 2025-09-03 15:22:11 +03:00
Files
postgres/src/backend/commands
Alvaro Herrera 80ef25b1ad Choose FK name correctly during partition attachment
During ALTER TABLE ATTACH PARTITION, if the name of a parent's foreign
key constraint is already used on the partition, the code tries to
choose another one before the FK attributes list has been populated,
so the resulting constraint name was "<relname>__fkey" instead of
"<relname>_<attrs>_fkey".  Repair, and add a test case.

Backpatch to 12.  In 11, the code to attach a partition was not smart
enough to cope with conflicting constraint names, so the problem doesn't
exist there.

Author: Jehan-Guillaume de Rorthais <jgdr@dalibo.com>
Discussion: https://postgr.es/m/20220901184156.738ebee5@karst
2022-09-08 13:17:02 +02:00
..
2020-01-01 12:21:45 -05:00
2020-01-01 12:21:45 -05:00
2022-08-26 16:55:04 +09:00
2020-01-01 12:21:45 -05:00
2020-01-01 12:21:45 -05:00
2022-01-03 15:42:27 -05:00
2020-04-08 11:37:27 +03:00