Re: How do I grant access to entire database at once(schemas, tables, sequences, ...)?

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Ulrich Meis <kenobi(at)halifax(dot)rwth-aachen(dot)de>, pgsql-admin(at)postgresql(dot)org
Subject: Re: How do I grant access to entire database at once(schemas, tables, sequences, ...)?
Date: 2004-05-17 19:10:08
Message-ID: 200405172110.08207.peter_e@gmx.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

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.

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Jie Liang 2004-05-17 19:15:51 Log msg
Previous Message Ulrich Meis 2004-05-17 16:53:58 How do I grant access to entire database at once(schemas,tables,sequences,...)?