pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bryce Nesbitt <bryce1@obviously.com>
To: pgsql-sql@postgresql.org
Subject: grant select on database demo to user
Date: Tue, 02 May 2006 20:32:54 -0700
Message-ID: <44582466.7010303@obviously.com> (raw)

I find myself with long lists of tables

  grant select on xx_tax to user;
  grant select on xx_trip to user;
  grant select on xx_foo to user;

Is there a way to grant to all tables, with a single grant?  I know how
to do it in mysql, but not postgres.  As close as I get it:

#grant select on database demo to user
ERROR:  invalid privilege type SELECT for database

-- 
----
Visit http://www.obviously.com/





view thread (4+ messages)  latest in thread

Message-ID: <44582466.7010303@obviously.com>
Permalink:  ../44582466.7010303@obviously.com/
Also on:    postgresql.org/message-id/44582466.7010303@obviously.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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: bryce1@obviously.com
  Subject: Re: grant select on database demo to user
  In-Reply-To: <44582466.7010303@obviously.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