From: | "Guido Barosio" <gbarosio(at)gmail(dot)com> |
---|---|
To: | "ketema(at)gmail(dot)com" <ketema(at)gmail(dot)com> |
Cc: | pgsql-novice(at)postgresql(dot)org |
Subject: | Re: Select permissions on system tables |
Date: | 2006-11-07 04:04:45 |
Message-ID: | f7f6b4c70611062004l7acf1850jc1804aa84869db32@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-novice |
I think that your problem is related with the search_path, rather
than with grants.
On 4 Nov 2006 07:24:02 -0800, ketema(at)gmail(dot)com <ketema(at)gmail(dot)com> wrote:
> 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
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 7: You can help support the PostgreSQL project by donating at
>
> http://www.postgresql.org/about/donate
>
--
Guido Barosio
-----------------------
http://www.globant.com
guido(dot)barosio(at)globant(dot)com
From | Date | Subject | |
---|---|---|---|
Next Message | Eric Guirbal | 2006-11-07 09:43:38 | Reports in phpPgAdmin |
Previous Message | ketema | 2006-11-04 15:24:02 | Select permissions on system tables |