pgsql: Prevent drop of tablespaces used by partitioned relations

2021-01-14 Thread Alvaro Herrera
Prevent drop of tablespaces used by partitioned relations When a tablespace is used in a partitioned relation (per commits ca4103025dfe in pg12 for tables and 33e6c34c3267 in pg11 for indexes), it is possible to drop the tablespace, potentially causing various problems. One such was reported in b

pgsql: Prevent drop of tablespaces used by partitioned relations

2021-01-14 Thread Alvaro Herrera
Prevent drop of tablespaces used by partitioned relations When a tablespace is used in a partitioned relation (per commits ca4103025dfe in pg12 for tables and 33e6c34c3267 in pg11 for indexes), it is possible to drop the tablespace, potentially causing various problems. One such was reported in b

pgsql: Prevent drop of tablespaces used by partitioned relations

2021-01-14 Thread Alvaro Herrera
Prevent drop of tablespaces used by partitioned relations When a tablespace is used in a partitioned relation (per commits ca4103025dfe in pg12 for tables and 33e6c34c3267 in pg11 for indexes), it is possible to drop the tablespace, potentially causing various problems. One such was reported in b

pgsql: Prevent drop of tablespaces used by partitioned relations

2021-01-14 Thread Alvaro Herrera
Prevent drop of tablespaces used by partitioned relations When a tablespace is used in a partitioned relation (per commits ca4103025dfe in pg12 for tables and 33e6c34c3267 in pg11 for indexes), it is possible to drop the tablespace, potentially causing various problems. One such was reported in b