Make CREATE/DROP/RENAME DATABASE wait a little bit to see if other backends
Tom Lane <tgl@sss.pgh.pa.us>
Make CREATE/DROP/RENAME DATABASE wait a little bit to see if other backends will exit before failing because of conflicting DB usage. Per discussion, this seems a good idea to help mask the fact that backend exit takes nonzero time. Remove a couple of thereby-obsoleted sleeps in contrib and PL regression test sequences.
Files
| Path | Change | +/− |
|---|---|---|
| contrib/Makefile | modified | +2 −5 |
| src/backend/commands/dbcommands.c | modified | +49 −39 |
| src/backend/storage/ipc/procarray.c | modified | +86 −57 |
| src/include/storage/procarray.h | modified | +2 −2 |
| src/pl/Makefile | modified | +2 −5 |