From d42cf5a42a42689f68bc1ee1200aca75f954b1fd Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Sun, 31 Jul 2005 17:19:22 +0000 Subject: Add per-user and per-database connection limit options. This patch also includes preliminary update of pg_dumpall for roles. Petr Jelinek, with review by Bruce Momjian and Tom Lane. --- src/include/storage/procarray.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/include/storage/procarray.h') diff --git a/src/include/storage/procarray.h b/src/include/storage/procarray.h index d1780bcca18..aa0adfec881 100644 --- a/src/include/storage/procarray.h +++ b/src/include/storage/procarray.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/include/storage/procarray.h,v 1.2 2005/06/17 22:32:50 tgl Exp $ + * $PostgreSQL: pgsql/src/include/storage/procarray.h,v 1.3 2005/07/31 17:19:22 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -31,6 +31,8 @@ extern bool IsBackendPid(int pid); extern bool DatabaseHasActiveBackends(Oid databaseId, bool ignoreMyself); extern int CountActiveBackends(void); +extern int CountDBBackends(Oid databaseid); +extern int CountUserBackends(Oid roleid); extern void XidCacheRemoveRunningXids(TransactionId xid, int nxids, TransactionId *xids); -- cgit v1.2.3