pgsql: Refuse ATTACH of a table referenced by a foreign key

2024-08-08 Thread Alvaro Herrera
Refuse ATTACH of a table referenced by a foreign key Trying to attach a table as a partition which is already on the referenced side of a foreign key on the partitioned table that it is being attached to, leads to strange behavior: we try to clone the foreign key from the parent to the partition,

pgsql: Refuse ATTACH of a table referenced by a foreign key

2024-08-08 Thread Alvaro Herrera
Refuse ATTACH of a table referenced by a foreign key Trying to attach a table as a partition which is already on the referenced side of a foreign key on the partitioned table that it is being attached to, leads to strange behavior: we try to clone the foreign key from the parent to the partition,

pgsql: Refuse ATTACH of a table referenced by a foreign key

2024-08-08 Thread Alvaro Herrera
Refuse ATTACH of a table referenced by a foreign key Trying to attach a table as a partition which is already on the referenced side of a foreign key on the partitioned table that it is being attached to, leads to strange behavior: we try to clone the foreign key from the parent to the partition,

pgsql: Refuse ATTACH of a table referenced by a foreign key

2024-08-08 Thread Alvaro Herrera
Refuse ATTACH of a table referenced by a foreign key Trying to attach a table as a partition which is already on the referenced side of a foreign key on the partitioned table that it is being attached to, leads to strange behavior: we try to clone the foreign key from the parent to the partition,

pgsql: Refuse ATTACH of a table referenced by a foreign key

2024-08-08 Thread Alvaro Herrera
Refuse ATTACH of a table referenced by a foreign key Trying to attach a table as a partition which is already on the referenced side of a foreign key on the partitioned table that it is being attached to, leads to strange behavior: we try to clone the foreign key from the parent to the partition,

pgsql: Refuse ATTACH of a table referenced by a foreign key

2024-08-08 Thread Alvaro Herrera
Refuse ATTACH of a table referenced by a foreign key Trying to attach a table as a partition which is already on the referenced side of a foreign key on the partitioned table that it is being attached to, leads to strange behavior: we try to clone the foreign key from the parent to the partition,

pgsql: Refuse ATTACH of a table referenced by a foreign key

2024-08-08 Thread Alvaro Herrera
Refuse ATTACH of a table referenced by a foreign key Trying to attach a table as a partition which is already on the referenced side of a foreign key on the partitioned table that it is being attached to, leads to strange behavior: we try to clone the foreign key from the parent to the partition,