Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at> writes:
> On Wed, 2022-06-08 at 11:12 +0900, Kyotaro Horiguchi wrote:
> RangeTblEntry *rte = root->simple_rte_array[i];
I think it's completely inappropriate for FDWs to be taking it on
themselves to inject privilege checks. The system design is that
that is checked at executor start; not before, not after.
regards, tom lane