summaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2007-06-01 19:38:07 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2007-06-01 19:38:07 +0000
commitbd0a260928971feec484a22f0b86e5d1936c974f (patch)
tree50e7378f30e0bdbeeb8f86b532fbed5861b0c8c5 /src/include
parent41ef1c0f327b79516cb423bba840a6322226dc28 (diff)
downloadpostgresql-bd0a260928971feec484a22f0b86e5d1936c974f.tar.gz
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.
Diffstat (limited to 'src/include')
-rw-r--r--src/include/storage/procarray.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/include/storage/procarray.h b/src/include/storage/procarray.h
index cd2df66380..dafb83a965 100644
--- a/src/include/storage/procarray.h
+++ b/src/include/storage/procarray.h
@@ -7,7 +7,7 @@
* Portions Copyright (c) 1996-2007, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $PostgreSQL: pgsql/src/include/storage/procarray.h,v 1.13 2007/04/03 16:34:36 tgl Exp $
+ * $PostgreSQL: pgsql/src/include/storage/procarray.h,v 1.14 2007/06/01 19:38:07 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -32,11 +32,11 @@ extern bool HaveTransactionsInCommit(TransactionId *xids, int nxids);
extern PGPROC *BackendPidGetProc(int pid);
extern int BackendXidGetPid(TransactionId xid);
extern bool IsBackendPid(int pid);
-extern bool DatabaseCancelAutovacuumActivity(Oid databaseId, bool ignoreMyself);
extern int CountActiveBackends(void);
extern int CountDBBackends(Oid databaseid);
extern int CountUserBackends(Oid roleid);
+extern bool CheckOtherDBBackends(Oid databaseId);
extern void XidCacheRemoveRunningXids(TransactionId xid,
int nxids, TransactionId *xids);