pgsql: Fix race between DROP TABLESPACE and checkpointing.

2022-03-15 Thread Thomas Munro
Fix race between DROP TABLESPACE and checkpointing. Commands like ALTER TABLE SET TABLESPACE may leave files for the next checkpoint to clean up. If such files are not removed by the time DROP TABLESPACE is called, we request a checkpoint so that they are deleted. However, there is presently a wi

pgsql: Fix race between DROP TABLESPACE and checkpointing.

2022-03-15 Thread Thomas Munro
Fix race between DROP TABLESPACE and checkpointing. Commands like ALTER TABLE SET TABLESPACE may leave files for the next checkpoint to clean up. If such files are not removed by the time DROP TABLESPACE is called, we request a checkpoint so that they are deleted. However, there is presently a wi

pgsql: Fix race between DROP TABLESPACE and checkpointing.

2022-03-15 Thread Thomas Munro
Fix race between DROP TABLESPACE and checkpointing. Commands like ALTER TABLE SET TABLESPACE may leave files for the next checkpoint to clean up. If such files are not removed by the time DROP TABLESPACE is called, we request a checkpoint so that they are deleted. However, there is presently a wi

pgsql: Fix race between DROP TABLESPACE and checkpointing.

2022-03-15 Thread Thomas Munro
Fix race between DROP TABLESPACE and checkpointing. Commands like ALTER TABLE SET TABLESPACE may leave files for the next checkpoint to clean up. If such files are not removed by the time DROP TABLESPACE is called, we request a checkpoint so that they are deleted. However, there is presently a wi

pgsql: Fix race between DROP TABLESPACE and checkpointing.

2022-03-15 Thread Thomas Munro
Fix race between DROP TABLESPACE and checkpointing. Commands like ALTER TABLE SET TABLESPACE may leave files for the next checkpoint to clean up. If such files are not removed by the time DROP TABLESPACE is called, we request a checkpoint so that they are deleted. However, there is presently a wi

pgsql: Fix race between DROP TABLESPACE and checkpointing.

2022-03-15 Thread Thomas Munro
Fix race between DROP TABLESPACE and checkpointing. Commands like ALTER TABLE SET TABLESPACE may leave files for the next checkpoint to clean up. If such files are not removed by the time DROP TABLESPACE is called, we request a checkpoint so that they are deleted. However, there is presently a wi