pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Randall Perry <rgp@systame.com>
To: Peter Eisentraut <peter_e@gmx.net>
To: Ulrich Meis <kenobi@halifax.rwth-aachen.de>
To: pgsql-admin@postgresql.org
Subject: Re: How do I grant access to entire database at
Date: Sun, 18 Jul 2004 15:52:41 -0400
Message-ID: <BD204D49.7DA1B%rgp@systame.com> (raw)
In-Reply-To: <200405172110.08207.peter_e@gmx.net>

This is a pain. Couldn't we gave something simple like
GRANT ALL ON database.* TO JOE;

Which would grant full access to all objects in the database to JOE for all
time?

> Ulrich Meis wrote:
>> 1. Write a script that queries the postgres internal tables for all
>> tables,schemas,sequences,views,functions,... and then executes grant
>> statements for each one of them. This would have to repeated each
>> time a new object is created.
> 
> Yes, that's the most popular method so far.  You could also write a
> stored procedure.
> 

-- 
Randall Perry
sysTame

Xserve Web Hosting/Co-location
Website Design/Development
WebObjects Hosting
Mac Consulting/Sales

http://www.systame.com/





view thread (11+ messages)  latest in thread

Message-ID: <BD204D49.7DA1B%rgp@systame.com>
Permalink:  ../BD204D49.7DA1B%25rgp@systame.com/
Also on:    postgresql.org/message-id/BD204D49.7DA1B%rgp@systame.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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: rgp@systame.com, peter_e@gmx.net, kenobi@halifax.rwth-aachen.de
  Subject: Re: How do I grant access to entire database at
  In-Reply-To: <BD204D49.7DA1B%rgp@systame.com>
  References: <200405172110.08207.peter_e@gmx.net> <BD204D49.7DA1B%rgp@systame.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