From: | "Ketema" <ketema(at)gmail(dot)com> |
---|---|
To: | pgsql-general(at)postgresql(dot)org |
Subject: | Select permissions on System tables |
Date: | 2006-11-01 14:52:48 |
Message-ID: | 1162392768.015718.204260@e3g2000cwe.googlegroups.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
I created a view as:
CREATE OR REPLACE VIEW caviar_schemas AS
SELECT n.oid::integer AS schema_id,
n.nspname::information_schema.sql_identifier::text AS schema_name
FROM pg_namespace n, pg_authid u
WHERE n.nspowner = u.oid AND pg_has_role(n.nspowner, 'MEMBER'::text)
AND u.rolname::information_schema.sql_identifier::text <>
'postgres'::text
ORDER BY n.nspname::information_schema.sql_identifier::text;
I then granted Select permissions on both the view and underlying
tables to public. When I select form the table as a non super user I
get no error, but no rows. Super users select from the view and
underlying tables fine. How can I give select only permissions to this
view to non super users?
Thanks
From | Date | Subject | |
---|---|---|---|
Next Message | Joshua D. Drake | 2006-11-01 14:56:19 | Re: [HACKERS] Index greater than 8k |
Previous Message | Merlin Moncure | 2006-11-01 14:51:33 | Re: Pgsql on Solaris |