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