Received: from shire.ontko.com (shire.ontko.com [199.164.165.1]) by postgresql.org (8.11.3/8.11.4) with ESMTP id g07LW2B88431 for ; Mon, 7 Jan 2002 16:32:02 -0500 (EST) (envelope-from nickf@ontko.com) Received: from nick (bilbo.ontko.com [199.164.165.101]) by shire.ontko.com (8.9.3/8.9.3/Debian 8.9.3-21) with SMTP id QAA08419; Mon, 7 Jan 2002 16:32:00 -0500 X-Authentication-Warning: shire.ontko.com: Host bilbo.ontko.com [199.164.165.101] claimed to be nick Reply-To: From: "Nick Fankhauser" To: "Jodi Kanter" , "Postgres Admin List" Subject: Re: granting all to user Date: Mon, 7 Jan 2002 16:28:27 -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) X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 Importance: Normal In-Reply-To: <004101c197be$83083c60$de138f80@virginia.edu> X-Archive-Number: 200201/21 X-Sequence-Number: 2910 I should have just given you this example in my earlier reply- this is how I quickly get a batch of grant statements- you can probably modify it for your needs: select 'grant select on '||relname||'to "www-data";' from pg_class where relname not like 'pg%'; -Nick > -----Original Message----- > From: pgsql-admin-owner@postgresql.org > [mailto:pgsql-admin-owner@postgresql.org]On Behalf Of Jodi Kanter > Sent: Monday, January 07, 2002 4:02 PM > To: Postgres Admin List > Subject: [ADMIN] granting all to user > > > Can I grant a user all privileges to all the tables without > having to type a > grant command for each table individually? > > I know that I can use: > grant all on object to username > > but I would like to set this person up as a superuser for now so > that he can > assist with development. > > It appears that when I set up users the default is NOT to give them access > to any of the tables. I would like to have the default set so > that users can > read all the tables and then have the option to give this one particular > person full access. > > Any suggestions??? > thanks > Jodi > > > ---------------------------(end of broadcast)--------------------------- > TIP 4: Don't 'kill -9' the postmaster >