Re: Several issues with postgres_fdw stats import - Mailing list pgsql-hackers

From Etsuro Fujita
Subject Re: Several issues with postgres_fdw stats import
Date
Msg-id CAPmGK14m36AB3FSC3pXuW38jCj9AtDBNG3ab=DnSbFxKid=ZMw@mail.gmail.com
Whole thread
In response to Re: Several issues with postgres_fdw stats import  (Etsuro Fujita <etsuro.fujita@gmail.com>)
List pgsql-hackers
On Tue, Sep 22, 2026 at 8:35 PM Etsuro Fujita <etsuro.fujita@gmail.com> wrote:
> He provided a fix for this as well, which I'm attaching.  The fix
> addresses it by switching the userid to the foreign-table owner's
> userid in analyze.c before calling ImportForeignStatistics().  I think
> the fix is also reasonable in that it makes the identity handling
> consistent between the sampling/import methods.  So I will push and
> back-patch the fix if no objections from others.

Done.  (I know Matheus updated the patch, but what he is proposing
would be rather an improvement, so I will work on it separately.)

Best regards,
Etsuro Fujita



pgsql-hackers by date:

Previous
From: Tatsuo Ishii
Date:
Subject: Re: Row pattern recognition
Next
From: Etsuro Fujita
Date:
Subject: Re: Several issues with postgres_fdw stats import