Re: BUG #3928: INFORMATION_SCHEMA does not give results if a user is allowed only access via ROLE - Mailing list pgsql-bugs

From Tom Lane
Subject Re: BUG #3928: INFORMATION_SCHEMA does not give results if a user is allowed only access via ROLE
Date
Msg-id 28493.1202248459@sss.pgh.pa.us
Whole thread Raw
In response to BUG #3928: INFORMATION_SCHEMA does not give results if a user is allowed only access via ROLE  ("Bart Heupers" <bart@sara.nl>)
List pgsql-bugs
"Bart Heupers" <bart@sara.nl> writes:
> If a user wants to get data from the INFORMATION_SCHEMA   about a table and
> he has access to the table via a ROLE
> then the INFORMATION_SCHEMA will not return results.

There seems to be a mistake in your example.  You show granting privilege
to table radar.radar:

> GRANT SELECT,REFERENCES
> ON TABLE RADAR.RADAR
> TO RADAR_READ;

but the query is looking for radar.track_object:

> where t.table_schema = 'radar'
> and t.table_name = 'track_object'

With the query corrected to have t.table_name = 'radar' it works as
expected AFAICT.

            regards, tom lane

pgsql-bugs by date:

Previous
From: "Heikki Linnakangas"
Date:
Subject: Re: BUG #3933: Update problem for 3 Foreign Keys referencing 1 field in another table (I'm not newbie in using SQL)
Next
From: "Ram Vinay Pandey"
Date:
Subject: BUG #3934: Connection error in CGI Script