pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jean-Denis Giguere <jdenisgiguere@fastmail.fm>
To: pgsql-admin@postgresql.org
Subject: grant execute on many functions
Date: Tue, 29 Jun 2004 17:39:53 -0400
Message-ID: <40E1E1A9.8080207@fastmail.fm> (raw)

Hi,

I have about 200 functions in a schema and I have to grant execute 
privilege on all these functions to a group.

I have found on the web an interesting function for grant access on table.
  http://www.lerctr.org/pgnotes/pgnotes.html 
(http://www.lerctr.org/pgnotes/grant-all.html)

But, the problem is more complex for functions because you have to give 
the arguments. You can find the list in the pg_proc table but they are 
store in a array by oid. So you can resolve the type with the table 
pg_type. After, you have to reproduce the correct syntax (with correct 
number of orgument, on one execute line...)

Is there a more simple approach to resolve this problem ?

Also if someone has a link to an advanced pl/pgsql documentation, I 
would really appreciate it because writing this function bypass my 
current knowledge of sql and the postgresql documentation on this topic 
don't give very complex examples.

Thank you for your attention,


--
Jean-Denis Giguère
Étudiant en géomatique appliquée à l'environnement
Université de Sherbrooke








view thread (13+ messages)  latest in thread

Message-ID: <40E1E1A9.8080207@fastmail.fm>
Permalink:  ../40E1E1A9.8080207@fastmail.fm/
Also on:    postgresql.org/message-id/40E1E1A9.8080207@fastmail.fm

 · 

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: jdenisgiguere@fastmail.fm
  Subject: Re: grant execute on many functions
  In-Reply-To: <40E1E1A9.8080207@fastmail.fm>
  References: <40E1E1A9.8080207@fastmail.fm>

* 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