X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id D92C8D1B501 for ; Wed, 10 Sep 2003 02:24:23 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 43988-09 for ; Tue, 9 Sep 2003 23:23:55 -0300 (ADT) Received: from pns.mm.eutelsat.org (pns.mm.eutelsat.org [194.214.173.227]) by svr1.postgresql.org (Postfix) with ESMTP id AA927D1B4E8 for ; Tue, 9 Sep 2003 23:23:50 -0300 (ADT) Received: from nts-03.mm.eutelsat.org (localhost [127.0.0.1]) by pns.mm.eutelsat.org (8.11.6/linuxconf) with ESMTP id h8A1PXJ28531; Wed, 10 Sep 2003 03:25:33 +0200 Received: from gmendola (accesspoint.mm.eutelsat.org [194.214.173.4]) by nts-03.mm.eutelsat.org (8.11.6/linuxconf) with SMTP id h8A2HgR06457; Wed, 10 Sep 2003 04:17:50 +0200 Message-ID: <001f01c37742$2ce38140$15720b3e@mm.eutelsat.org> From: "Gaetano Mendola" To: Cc: "Tom Gordon" References: <909D9A10FFF03D4C87F429E7B2894E64C6D75D@nynt.farechase.com> Subject: Re: How to create schema-specific users? Date: Wed, 10 Sep 2003 04:20:42 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-Virus-Scanned: by amavisd-new at postgresql.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests=BAYES_30, EMAIL_ATTRIBUTION, MSG_ID_ADDED_BY_MTA_3, QUOTED_EMAIL_TEXT, RCVD_IN_OSIRUSOFT_COM, REFERENCES, REPLY_WITH_QUOTES X-Spam-Level: X-Archive-Number: 200309/168 X-Sequence-Number: 10256 "Tom Gordon" wrote: > I'm missing something. How do I create a user that is just for a specific > schema, and not a global user? I see in the docs how to create schemas and > users, but not a schema-specific user. The only think that you can do is specify on your pg_hba.conf file the databases that the user can connect to. If you run Postgres 7.3.X these line are an example to add to your pg_hba.conf file: host password of course this line is valid only for remote connection, for local connection: local trust Refer to the PostgreSQL Administrator's Guide, chapter "Client Authentication" for a complete description. Regards Gaetano Mendola