"Greg Sabino Mullane" <greg(at)turnstep(dot)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