pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: 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 once(schemas, tables, sequences, ...)?
Date: Mon, 17 May 2004 21:10:08 +0200
Message-ID: <200405172110.08207.peter_e@gmx.net> (raw)
In-Reply-To: <40A8D55A.9040600@halifax.rwth-aachen.de>
References: <40A8D55A.9040600@halifax.rwth-aachen.de>

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.

> 2.(Not sure if this works) Insert a trigger on postgres's internal
> tables in template1 that grants permission to a group say
> <dbname>_group to the created object. Developers that need access to
> the database can then be added to that group.

Triggers on system tables don't work.




view thread (11+ messages)  latest in thread

Message-ID: <200405172110.08207.peter_e@gmx.net>
Permalink:  ../200405172110.08207.peter_e@gmx.net/
Also on:    postgresql.org/message-id/200405172110.08207.peter_e@gmx.net

 · 

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: peter_e@gmx.net, kenobi@halifax.rwth-aachen.de
  Subject: Re: How do I grant access to entire database at once(schemas, tables, sequences, ...)?
  In-Reply-To: <200405172110.08207.peter_e@gmx.net>
  References: <40A8D55A.9040600@halifax.rwth-aachen.de> <200405172110.08207.peter_e@gmx.net>

* 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