Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id F094D64FCFC for ; Sun, 20 Jul 2008 09:48:03 -0300 (ADT) Received: from postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 07160-02 for ; Sun, 20 Jul 2008 09:47:55 -0300 (ADT) X-Greylist: delayed 00:31:20.050994 by SQLgrey-1.7.6 Received: from mail.codecraft.se (unknown [84.19.136.41]) by postgresql.org (Postfix) with ESMTP id E322364FCF4 for ; Sun, 20 Jul 2008 09:48:00 -0300 (ADT) Received: from [192.168.2.4] (c-9fece255.010-100-6b697210.cust.bredbandsbolaget.se [85.226.236.159]) by mail.codecraft.se (Postfix) with ESMTP id D8125158060; Sun, 20 Jul 2008 14:16:36 +0200 (CEST) In-Reply-To: <4882A742.4060500@djs-consulting.com> References: <4882A742.4060500@djs-consulting.com> Mime-Version: 1.0 (Apple Message framework v753.1) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <1941FA53-07B1-4984-AC21-CF0628446D39@codecraft.se> Cc: pgsql-admin@postgresql.org Content-Transfer-Encoding: 7bit From: Niklas Johansson Subject: Re: Created non-owner user cannot see database Date: Sun, 20 Jul 2008 14:16:54 +0200 To: "Daniel J. Summers" X-Mailer: Apple Mail (2.753.1) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.1 tagged_above=0 required=5 tests=RDNS_NONE=0.1 X-Spam-Level: X-Archive-Number: 200807/182 X-Sequence-Number: 29792 On 20 jul 2008, at 04.47, Daniel J. Summers wrote: > grant usage on database custom_database to user_no_2; > > Now, none of these commands failed - they all came back with > "CREATE ROLE" (or the appropriate response). Are you sure? 'GRANT USAGE ON DATABASE...' is invalid syntax. You probably want 'GRANT CONNECT ON DATABASE...'. Sincerely, Niklas Johansson