From cjarman@source.com.au Mon Oct 29 12:26:24 2001 Received: from www.source.com.au (www.source.com.au [203.32.161.236]) by postgresql.org (8.11.3/8.11.4) with ESMTP id f9TCQNP34018 for ; Mon, 29 Oct 2001 07:26:24 -0500 (EST) (envelope-from cjarman@source.com.au) Received: from craig ([144.137.66.228]) by www.source.com.au (Lotus Domino Release 5.0.5) with SMTP id 2001102923562668:484 ; Mon, 29 Oct 2001 23:56:26 +1100 Message-ID: <003501c16075$0f8eee30$0a00a8c0@craig> From: "Craig Jarman" To: Subject: Error: Relation 'testdb' does not exist Date: Mon, 29 Oct 2001 23:27:22 +1100 MIME-Version: 1.0 X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2314.1300 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 X-MIMETrack: Itemize by SMTP Server on web/Source(Release 5.0.5 |September 22, 2000) at 10/29/2001 11:56:26 PM, Serialize by Router on web/Source(Release 5.0.5 |September 22, 2000) at 10/29/2001 11:56:41 PM, Serialize complete at 10/29/2001 11:56:41 PM Content-Type: multipart/alternative; boundary="----=_NextPart_000_0032_01C160D1.429C1080" X-Archive-Number: 200110/241 X-Sequence-Number: 2485 This is a multi-part message in MIME format. ------=_NextPart_000_0032_01C160D1.429C1080 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="iso-8859-1" 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 exi= st" I have gone over the documentation several times but can't find an explanat= ion for this error. Any pointers?=20 ______________________________ Craig Jarman Director, Source IT Ph: 612 9974 1480 Fx: 612 9974 1280 cjarman@source.com.au ______________________________ ------=_NextPart_000_0032_01C160D1.429C1080 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset="iso-8859-1"
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:=20 Relation 'testdb' does not exist"
 
I have gone over the documentation several times but ca= n't=20 find an explanation for this error. Any pointers? 
______________________________
 
Craig Jarman
Director, Source IT
Ph: 612 9974=20 1480
Fx: 612 9974 1280
cjarman@source.com.au
________= ______________________
------=_NextPart_000_0032_01C160D1.429C1080-- From nickf@ontko.com Mon Oct 29 17:25:01 2001 Received: from albatross.prod.itd.earthlink.net (albatross.mail.pas.earthlink.net [207.217.120.120]) by postgresql.org (8.11.3/8.11.4) with ESMTP id f9THP1P16152 for ; Mon, 29 Oct 2001 12:25:01 -0500 (EST) (envelope-from nickf@ontko.com) Received: from 1cust11.tnt2.richmond.in.da.uu.net ([63.26.248.11] helo=nick) by albatross.prod.itd.earthlink.net with smtp (Exim 3.33 #1) id 15yG9i-0004yv-00; Mon, 29 Oct 2001 09:24:58 -0800 Reply-To: From: "Nick Fankhauser" To: "Craig Jarman" , Subject: Re: Error: Relation 'testdb' does not exist Date: Mon, 29 Oct 2001 12:23:05 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) In-Reply-To: <003501c16075$0f8eee30$0a00a8c0@craig> X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 Importance: Normal X-Archive-Number: 200110/248 X-Sequence-Number: 2492 > 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/ From jm.poure@freesurf.fr Mon Oct 29 18:46:12 2001 Received: from mailhub7.isdnet.net (mailhub7.isdnet.net [195.154.209.27]) by postgresql.org (8.11.3/8.11.4) with ESMTP id f9TIkCP35236 for ; Mon, 29 Oct 2001 13:46:12 -0500 (EST) (envelope-from jm.poure@freesurf.fr) Received: from station ([195.154.28.3]) by mailhub7.isdnet.net (8.9.3/8.9.3) with ESMTP id TAA71563; Mon, 29 Oct 2001 19:46:05 +0100 (CET) Message-Id: <4.2.0.58.20011029194318.00cd6a60@pop.freesurf.fr> X-Sender: jm.poure@pop.freesurf.fr X-Mailer: QUALCOMM Windows Eudora Pro Version 4.2.0.58 Date: Mon, 29 Oct 2001 19:46:00 +0100 To: "Craig Jarman" From: Jean-Michel POURE Subject: Re: Error: Relation 'testdb' does not exist Cc: pgsql-admin@postgresql.org In-Reply-To: <003501c16075$0f8eee30$0a00a8c0@craig> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Archive-Number: 200110/249 X-Sequence-Number: 2493 >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