Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 0845364FF77 for ; Sun, 20 Jul 2008 10:21:47 -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 46221-02 for ; Sun, 20 Jul 2008 10:21:26 -0300 (ADT) X-Greylist: delayed 00:31:14.654614 by SQLgrey-1.7.6 Received: from mail.codecraft.se (unknown [84.19.136.41]) by postgresql.org (Postfix) with ESMTP id AF8CA64FCFC for ; Sun, 20 Jul 2008 10:21:24 -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 BC1CB15816A; Sun, 20 Jul 2008 14:50:08 +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: <37B225F2-A340-4F84-8490-6B8609D66E4B@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:50:26 +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/175 X-Sequence-Number: 29785 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