pg.ddx.io  pgsql-testers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Josh Berkus <josh@agliodbs.com>
To: pgsql-testers@postgresql.org
Subject: Re: Trying to GRANT privileges on a newly-created database
Date: Sun, 02 May 2010 19:00:33 -0700
Message-ID: <4BDE2E41.5090505@agliodbs.com> (raw)
In-Reply-To: <1720764182.4921461272841175665.JavaMail.root@sz0093a.westchester.pa.mail.comcast.net>
References: <1720764182.4921461272841175665.JavaMail.root@sz0093a.westchester.pa.mail.comcast.net>

On 05/02/2010 03:59 PM, Lou Picciano wrote:
>
>
> *[TEST REPORT]*
>
> *[Release]:* 8.5alpha2
>
> *[Test Type]:* psql CLI
>
> *[Test]:* Trying to GRANT privileges on a newly-created database
>
> *[Platform]:* Solaris SPARC 4u (E450)
>
> *[Parameters]:* Trying to GRANT privileges on a newly-created database.
> db name in lower case.
>
> *[Failure]: yes*
>
> *[Results]:*
>
> # CREATE DATABASE dbname;
>
> # GRANT ALL ON dbname TO role;
>
> ERROR: relatioypn "dbname" does not exist
>
> Please note this database is created in lower case; it has not been
> renamed from upper.
>
> # GRANT ALL ON dbname TO role; - produces the same error.
	
In general, to do a grant on anything other that a table you need to 
name the object type, i.e.

GRANT ALL ON DATABASE dbname TO role;

That's been true for quite a while.

-- 
                                   -- Josh Berkus
                                      PostgreSQL Experts Inc.
                                      http://www.pgexperts.com



view thread (2+ messages)

Message-ID: <4BDE2E41.5090505@agliodbs.com>
Permalink:  ../4BDE2E41.5090505@agliodbs.com/
Also on:    postgresql.org/message-id/4BDE2E41.5090505@agliodbs.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-testers@postgresql.org
  Cc: josh@agliodbs.com
  Subject: Re: Trying to GRANT privileges on a newly-created database
  In-Reply-To: <4BDE2E41.5090505@agliodbs.com>
  References: <1720764182.4921461272841175665.JavaMail.root@sz0093a.westchester.pa.mail.comcast.net> <4BDE2E41.5090505@agliodbs.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox