Received: from postgresql.org.org (webmail.postgresql.org [216.126.85.28]) by postgresql.org (8.11.3/8.11.1) with SMTP id f55JSOE60219 for ; Tue, 5 Jun 2001 15:28:24 -0400 (EDT) (envelope-from pgsql-admin-owner@postgresql.org) Received: from news.tht.net (news.hub.org [216.126.91.242]) by postgresql.org (8.11.3/8.11.1) with ESMTP id f4VKSFE37340 for ; Thu, 31 May 2001 16:28:15 -0400 (EDT) (envelope-from news@news.tht.net) Received: (from news@localhost) by news.tht.net (8.11.1/8.11.1) id f4VKPXV75187 for pgsql-admin@postgresql.org; Thu, 31 May 2001 16:25:33 -0400 (EDT) (envelope-from news) From: "Tauren Mills" X-Newsgroups: comp.databases.postgresql.admin Subject: Limiting simultaneous connections Date: Thu, 31 May 2001 13:27:56 -0700 Organization: Hub.Org Networking Services (http://www.hub.org) Lines: 21 Message-ID: <9f69bs$29dg$1@news.tht.net> X-Complaints-To: scrappy@hub.org X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 To: pgsql-admin@postgresql.org X-Archive-Number: 200106/23 X-Sequence-Number: 1559 Is there a way to limit the number of simultaneous connections that any given username can make to the database? For instance, I'd like user1 to be able to have no more than 5 simultaneous connections to the database server, but user2 can have 15 simultaneous connections. Also, can these connections be limited on a per user for the entire database server basis? Or can they be limited on a per user per database basis? By this I mean, can a user create up to 5 connections to one of their databases and then another 5 to one of their other databases (total of 10 connetions across the whole database server). Or can they be limited to a total of 5 for any connections to any of their databases? I will be using either 7.1.1 from RPM or 7.1.2 from source on Red Hat Linux 6.2 and 7.1. Thanks! Tauren