Make CREATE/DROP/RENAME DATABASE wait a little bit to see if other backends

Tom Lane <tgl@sss.pgh.pa.us>

Commit: bd0a260928971feec484a22f0b86e5d1936c974f
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2007-06-01T19:38:07Z
Releases: 8.3.0
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

PathChange+/−
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