X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 98C05D1B19B for ; Mon, 17 May 2004 16:10:29 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 35203-03 for ; Mon, 17 May 2004 16:10:10 -0300 (ADT) Received: from mail.gmx.net (pop.gmx.net [213.165.64.20]) by svr1.postgresql.org (Postfix) with SMTP id 4191AD1C4CA for ; Mon, 17 May 2004 16:10:08 -0300 (ADT) Received: (qmail 2392 invoked by uid 65534); 17 May 2004 19:10:09 -0000 Received: from dsl-082-082-233-208.arcor-ip.net (EHLO colt.pezone.net) (82.82.233.208) by mail.gmx.net (mp026) with SMTP; 17 May 2004 21:10:09 +0200 X-Authenticated: #495269 From: Peter Eisentraut To: Ulrich Meis , 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 User-Agent: KMail/1.5.1 References: <40A8D55A.9040600@halifax.rwth-aachen.de> In-Reply-To: <40A8D55A.9040600@halifax.rwth-aachen.de> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200405172110.08207.peter_e@gmx.net> X-Virus-Scanned: by amavisd-new at postgresql.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200405/164 X-Sequence-Number: 13480 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 > _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.