Re: Error: Relation 'testdb' does not exist - Mailing list pgsql-admin

From Nick Fankhauser
Subject Re: Error: Relation 'testdb' does not exist
Date
Msg-id NEBBLAAHGLEEPCGOBHDGEEICDNAA.nickf@ontko.com
Whole thread Raw
In response to Error: Relation 'testdb' does not exist  ("Craig Jarman" <cjarman@source.com.au>)
List pgsql-admin
> 3. psql testdb
> 4. GRANT ALL ON testdb TO administrator

> At this point an error is returned - "Error: Relation 'testdb' does not
exist"

This is because testdb is the database, not an object in the database. You
can grant priveleges on individual objects in the db, but not the entire db.
(Inconvenient, but it's pretty easy to write a script to create a set of
grants.)

-Nick

--------------------------------------------------------------------------
Nick Fankhauser  nickf@ontko.com  Phone 1.765.935.4283  Fax 1.765.962.9788
Ray Ontko & Co.     Software Consulting Services     http://www.ontko.com/



pgsql-admin by date:

Previous
From: "Todd Williamsen"
Date:
Subject: Re: Ultimate DB Server
Next
From: Jean-Michel POURE
Date:
Subject: Re: Error: Relation 'testdb' does not exist