Re: BUG #3928: INFORMATION_SCHEMA does not give results if a user is allowed only access via ROLE

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Bart Heupers" <bart(at)sara(dot)nl>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #3928: INFORMATION_SCHEMA does not give results if a user is allowed only access via ROLE
Date: 2008-02-05 21:54:19
Message-ID: 28493.1202248459@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

"Bart Heupers" <bart(at)sara(dot)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

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Ram Vinay Pandey 2008-02-06 04:46:05 BUG #3934: Connection error in CGI Script
Previous Message Dave Page 2008-02-05 21:47:16 Re: [BUGS] BUG #3909: src\tools\msvc\clean.bat clears parse.h file