KaiGai Kohei <kaigai@ak.jp.nec.com> writes:
> ExecCheckRTEPerms() checks user's privileges on columns, when he does
> not have required privileges on the table. When he has proper privileges
> on all the appeared columns within the table, it is allowed.
> But, when no columns are used on the table, it applies result of checks
> on the table.
Surely the SQL spec tells us what to do here (and I cannot believe this
is it...)
regards, tom lane