pg.ddx.io pgsql-admin@postgresql.org mailing list archivehelp / color / mirror / Atom feed
Error: Relation 'testdb' does not exist 3+ messages / 3 participants [nested] [flat]
* Error: Relation 'testdb' does not exist @ 2001-10-29 12:27 Craig Jarman <cjarman@source.com.au> 0 siblings, 2 replies; 3+ messages in thread From: Craig Jarman @ 2001-10-29 12:27 UTC (permalink / raw) To: pgsql-admin Hi All I am trying to add a user to a specified database Steps taken 1. createdb testdb 2. createuser (then follow the prompts) 3. psql testdb 4. GRANT ALL ON testdb TO administrator At this point an error is returned - "Error: Relation 'testdb' does not exist" I have gone over the documentation several times but can't find an explanation for this error. Any pointers? ______________________________ Craig Jarman Director, Source IT Ph: 612 9974 1480 Fx: 612 9974 1280 cjarman@source.com.au ______________________________ ^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: Error: Relation 'testdb' does not exist @ 2001-10-29 17:23 Nick Fankhauser <nickf@ontko.com> parent: Craig Jarman <cjarman@source.com.au> 1 sibling, 0 replies; 3+ messages in thread From: Nick Fankhauser @ 2001-10-29 17:23 UTC (permalink / raw) To: Craig Jarman <cjarman@source.com.au>; 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/ ^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: Error: Relation 'testdb' does not exist @ 2001-10-29 18:46 Jean-Michel POURE <jm.poure@freesurf.fr> parent: Craig Jarman <cjarman@source.com.au> 1 sibling, 0 replies; 3+ messages in thread From: Jean-Michel POURE @ 2001-10-29 18:46 UTC (permalink / raw) To: Craig Jarman <cjarman@source.com.au>; +Cc: pgsql-admin >1. createdb testdb pgsql template1; CREATE DATABASE testdb \q >2. createuser (then follow the prompts) createuser -p This sets password >3. psql testdb >4. GRANT ALL ON testdb TO administrator No need to hope this helps. Jean-Michel POURE ^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2001-10-29 18:46 UTC | newest] Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2001-10-29 12:27 Error: Relation 'testdb' does not exist Craig Jarman <cjarman@source.com.au> 2001-10-29 17:23 ` Nick Fankhauser <nickf@ontko.com> 2001-10-29 18:46 ` Jean-Michel POURE <jm.poure@freesurf.fr>
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