Use just one database connection in the "tablespace" test.
Noah Misch <noah@leadboat.com>
Use just one database connection in the "tablespace" test. On Windows, DROP TABLESPACE has a race condition when run concurrently with other processes having opened files in the tablespace. This led to a rare failure on buildfarm member frogmouth. Back-patch to 9.4, where the reconnection was introduced.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/commands/tablespace.c | modified | +7 −0 |
| src/test/regress/input/tablespace.source | modified | +1 −2 |
| src/test/regress/output/tablespace.source | modified | +1 −1 |