Re: [GENERAL] pg_type.relacl

2008-03-13 Thread Roberts, Jon
AGE 'plpgsql' VOLATILE; Now I can run these statements: select * from admin.fn_get_dba_fn_roles(); and select * from admin.fn_get_dba_fn_roles('abc', 'fn_123'); I wrote similar functions to show grants to tables. Is there an easier way to handle this? Jon

Re: [GENERAL] pg_type.relacl

2008-03-11 Thread Roberts, Jon
than it sounds. Jon > -Original Message- > From: Tom Lane [mailto:[EMAIL PROTECTED] > Sent: Monday, March 10, 2008 4:08 PM > To: Roberts, Jon > Cc: pgsql-general@postgresql.org > Subject: Re: [GENERAL] pg_type.relacl > > "Roberts, Jon" <[EMAIL PROT

Re: [GENERAL] pg_type.relacl

2008-03-10 Thread Tom Lane
"Roberts, Jon" <[EMAIL PROTECTED]> writes: > If the remote database is on the same server, it works but fails on the > different server. It looks like the datatype aclitem[] is linked to > roles which seems weird to me. Why would you find that weird? aclitem exists to store references to roles.

[GENERAL] pg_type.relacl

2008-03-10 Thread Roberts, Jon
I need to get a list of roles granted select on a table from a remote database. Ideally, each grantee would be represented as VARCHAR and not an ACLITEM. If the remote database is on the same server, it works but fails on the different server. It looks like the datatype aclitem[] is linked to