View Single Post

   
  #4 (permalink)  
Old 04-12-2008, 05:25 AM
Tom Lane
 
Posts: n/a
Default Re: [COMMITTERS] pgsql: Sequences were not being shown due to the use of lowercase `s`

"Greg Sabino Mullane" <greg@turnstep.com> writes:
> Tom Lane replied:
>> What became of my objection that the test should be on USAGE privilege
>> for the containing schema instead?


> I took a stab at implementing this, but what exactly would we check? Looks
> like all the temp tables have automatic usage for the same user, according to


> SELECT *,has_schema_privilege(oid,'USAGE') FROM pg_namespace;


Well, if you test it as a superuser, it's going to return TRUE every
time.

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 3: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faq

Reply With Quote