Re: GRANT ON ALL IN schema - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: GRANT ON ALL IN schema
Date
Msg-id 200908101042.35024.peter_e@gmx.net
Whole thread Raw
In response to Re: GRANT ON ALL IN schema  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: GRANT ON ALL IN schema  ("Kevin Grittner" <Kevin.Grittner@wicourts.gov>)
List pgsql-hackers
On Wednesday 05 August 2009 19:59:52 Tom Lane wrote:
> Or maybe we are going at this the wrong way?  Would it be better to try
> harder to support the write-a-plpgsql-function approach?

This would become much simpler if you could just execute plpgsql code instead 
of having to define a function around it.  And perhaps if the plpgsql parser 
where a bit smarter.

Example:

RUN LANGUAGE plpgsql $$
FOR schema_name, table_name FROM information_schema.tables WHERE whatever LOOP   GRANT ALL ON TABLE
schema_name.table_nameTO someuser;
 
END LOOP $$;



pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: [COMMITTERS] pgsql: Ship documentation without intermediate tarballs Documentation
Next
From: Dimitri Fontaine
Date:
Subject: CommitFest reviews and application support