X-Original-To: pgsql-interfaces-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id B92DE567F7 for ; Mon, 21 Mar 2005 21:13:48 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 68778-01 for ; Mon, 21 Mar 2005 21:13:43 +0000 (GMT) Received: from tigger.fuhr.org (tigger.fuhr.org [63.214.45.158]) by svr1.postgresql.org (Postfix) with ESMTP id 5DA2256776 for ; Mon, 21 Mar 2005 21:13:42 +0000 (GMT) Received: from winnie.fuhr.org (winnie.fuhr.org [10.1.0.1]) by tigger.fuhr.org (8.13.3/8.13.3) with ESMTP id j2LLDe2D030336 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 21 Mar 2005 14:13:42 -0700 (MST) (envelope-from mfuhr@winnie.fuhr.org) Received: from winnie.fuhr.org (localhost [127.0.0.1]) by winnie.fuhr.org (8.13.3/8.13.3) with ESMTP id j2LLDdqH043150; Mon, 21 Mar 2005 14:13:39 -0700 (MST) (envelope-from mfuhr@winnie.fuhr.org) Received: (from mfuhr@localhost) by winnie.fuhr.org (8.13.3/8.13.3/Submit) id j2LLDdOq043149; Mon, 21 Mar 2005 14:13:39 -0700 (MST) (envelope-from mfuhr) Date: Mon, 21 Mar 2005 14:13:39 -0700 From: Michael Fuhr To: Murray Cumming Cc: pgsql-interfaces Subject: Re: per-database groups? (was Discovering privileges) Message-ID: <20050321211339.GA43088@winnie.fuhr.org> References: <1088799354.3319.110.camel@murrayc_debian> <1111330231.5820.4.camel@localhost.localdomain> <20050320154247.GA18843@winnie.fuhr.org> <1111337130.5820.7.camel@localhost.localdomain> <20050320170228.GA19192@winnie.fuhr.org> <1111430281.5554.38.camel@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1111430281.5554.38.camel@localhost.localdomain> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.004 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200503/66 X-Sequence-Number: 5395 On Mon, Mar 21, 2005 at 07:38:00PM +0100, Murray Cumming wrote: > I notice that users and groups are per-cluster rather than per-database. > Is there any way to create users and groups that are not available to > other databases on the same cluster? What do you mean by "available"? You can use pg_hba.conf to control which users can connect to which databases, if that's what you're after. Or maybe db_user_namespace will do what you want: http://www.postgresql.org/docs/8.0/interactive/runtime-config.html#GUC-DB-USER-NAMESPACE -- Michael Fuhr http://www.fuhr.org/~mfuhr/