1
0
mirror of https://github.com/postgres/postgres.git synced 2025-11-10 17:42:29 +03:00
Files
postgres/src/backend
Alvaro Herrera e7936f8b3e 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
..
2022-08-26 10:44:50 +02:00
2022-09-04 12:09:01 +07:00
2022-09-08 11:20:29 +02:00
2022-09-01 17:07:14 -04:00
2022-09-01 17:07:14 -04:00
2022-09-01 17:07:14 -04:00
2022-09-07 17:33:49 +02:00
2022-09-07 17:33:49 +02:00