pgsql: Restructure foreign key handling code for ATTACH/DETACH

2024-10-22 Thread Álvaro Herrera
Restructure foreign key handling code for ATTACH/DETACH ... to fix bugs when the referenced table is partitioned. The catalog representation we chose for foreign keys connecting partitioned tables (in commit f56f8f8da6af) is inconvenient, in the sense that a standalone table has a different way t

pgsql: Restructure foreign key handling code for ATTACH/DETACH

2024-10-22 Thread Álvaro Herrera
Restructure foreign key handling code for ATTACH/DETACH ... to fix bugs when the referenced table is partitioned. The catalog representation we chose for foreign keys connecting partitioned tables (in commit f56f8f8da6af) is inconvenient, in the sense that a standalone table has a different way t

pgsql: Restructure foreign key handling code for ATTACH/DETACH

2024-10-22 Thread Álvaro Herrera
Restructure foreign key handling code for ATTACH/DETACH ... to fix bugs when the referenced table is partitioned. The catalog representation we chose for foreign keys connecting partitioned tables (in commit f56f8f8da6af) is inconvenient, in the sense that a standalone table has a different way t

pgsql: Restructure foreign key handling code for ATTACH/DETACH

2024-10-22 Thread Álvaro Herrera
Restructure foreign key handling code for ATTACH/DETACH ... to fix bugs when the referenced table is partitioned. The catalog representation we chose for foreign keys connecting partitioned tables (in commit f56f8f8da6af) is inconvenient, in the sense that a standalone table has a different way t

pgsql: Restructure foreign key handling code for ATTACH/DETACH

2024-10-22 Thread Álvaro Herrera
Restructure foreign key handling code for ATTACH/DETACH ... to fix bugs when the referenced table is partitioned. The catalog representation we chose for foreign keys connecting partitioned tables (in commit f56f8f8da6af) is inconvenient, in the sense that a standalone table has a different way t

pgsql: Restructure foreign key handling code for ATTACH/DETACH

2024-10-22 Thread Álvaro Herrera
Restructure foreign key handling code for ATTACH/DETACH ... to fix bugs when the referenced table is partitioned. The catalog representation we chose for foreign keys connecting partitioned tables (in commit f56f8f8da6af) is inconvenient, in the sense that a standalone table has a different way t