Skip site navigation (1) Skip section navigation (2)

Re: Select permissions on system tables

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 (view raw or flat)
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

In response to

pgsql-novice by date

Next:From: Eric GuirbalDate: 2006-11-07 09:43:38
Subject: Reports in phpPgAdmin
Previous:From: ketemaDate: 2006-11-04 15:24:02
Subject: Select permissions on system tables

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group