Received: from localhost (unknown [200.46.204.183]) by developer.postgresql.org (Postfix) with ESMTP id 3C8C22E004B for ; Wed, 7 May 2008 13:34:12 -0300 (ADT) Received: from developer.postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 95659-10 for ; Wed, 7 May 2008 13:34:07 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from momjian.us (momjian.us [70.90.9.53]) by developer.postgresql.org (Postfix) with ESMTP id 47BF32E0047 for ; Wed, 7 May 2008 13:34:08 -0300 (ADT) Received: (from bruce@localhost) by momjian.us (8.11.6/8.11.6) id m47GY6P24076; Wed, 7 May 2008 12:34:06 -0400 (EDT) From: Bruce Momjian Message-Id: <200805071634.m47GY6P24076@momjian.us> Subject: Re: order of entries in admin docs In-Reply-To: <27873.1205257019@sss.pgh.pa.us> To: Tom Lane Date: Wed, 7 May 2008 12:34:06 -0400 (EDT) CC: Scott Marlowe , pgsql-docs@postgresql.org X-Mailer: ELM [version 2.4ME+ PL124 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="US-ASCII" X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200805/2 X-Sequence-Number: 4888 Tom Lane wrote: > Something else that ought to be considered here is that now that we have > CONNECT privilege for databases, manipulating privileges is a lot saner > way to control who-can-connect-where than setting up fancy combinations > of user and database entries in pg_hba.conf. AFAIR there is no mention > of this alternative in Chapter 21, but it seems like there ought to be. > With your proposed reorganization, that would become a forward > reference; is that OK? We do have a "Tip" about this in the pg_hba.conf section: http://developer.postgresql.org/pgdocs/postgres/auth-pg-hba-conf.html Tip: To connect to a particular database, a user must not only pass the pg_hba.conf checks, but must have the CONNECT privilege for the database. If you wish to restrict which users can connect to which databases, it's usually easier to control this by granting/revoking CONNECT privilege than to put the rules into pg_hba.conf entries. Do we need more? -- Bruce Momjian http://momjian.us EnterpriseDB http://enterprisedb.com + If your life is a hard drive, Christ can be your backup. +