I have a number of GRANTs I need to make in a Postgres databas -- Is it possible to put statements like
GRANT SELECT ON TABLE tablename_xxx TO xxx_group;
inside of a Postgres SQL function?
|
I have a number of
inside of a Postgres SQL function?
| |||||||||||
feedback
|
|
I believe you can do this, but in practice you are probably better off writing an external script to do it instead: Having a Postgres function (pl/pgsql or similar) hanging around just to do I consider | |||
feedback
|