Re: [GENERAL] Strange permission problem regarding pg_settings - Mailing list pgsql-hackers

From Joe Conway
Subject Re: [GENERAL] Strange permission problem regarding pg_settings
Date
Msg-id 3FEE64CB.4010801@joeconway.com
Whole thread Raw
In response to Re: [GENERAL] Strange permission problem regarding pg_settings  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: [GENERAL] Strange permission problem regarding pg_settings  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Tom Lane wrote:
> Joe Conway <mail@joeconway.com> writes:
>>OK, that makes more sense now. But why isn't table2 also in the rule 
>>query's rtable?
> 
> It is, but you errored out before getting to it.

The fog has finally started lifting, I think.

Why wouldn't we force checkAsUser to the rule owner in the copied RTEs, 
similar to the rest of the rule query? It makes sense in that the rule 
query could possibly use the RTE (although as you pointed out it doesn't 
in this case), and therefore the permission check should be the same, no?

Joe




pgsql-hackers by date:

Previous
From: Gaetano Mendola
Date:
Subject: Little mess in RPM RH ?
Next
From: "Sander Steffann"
Date:
Subject: Re: Little mess in RPM RH ?