Re: postgres_fdw: fix cumulative stats after imported foreign-table stats

Chao Li <li.evan.chao@gmail.com>

From: Chao Li <li.evan.chao@gmail.com>
To: Etsuro Fujita <etsuro.fujita@gmail.com>
Cc: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>, Corey Huinker <corey.huinker@gmail.com>
Date: 2026-06-15T07:36:32Z
Lists: pgsql-hackers

> On Jun 13, 2026, at 17:32, Etsuro Fujita <etsuro.fujita@gmail.com> wrote:
> 
> Hi Chao,
> 
> On Fri, Jun 12, 2026 at 12:49 PM Chao Li <li.evan.chao@gmail.com> wrote:
>> While testing "[28972b6fc] Add support for importing statistics from remote servers", I found a problem: when remote stats are imported, cumulative stats are not updated.
> 
> Thanks for the report and patch!
> 
> Actually, I have also just noticed this problem in my post-commit
> self-review.  Will look into the patch.
> 
> Best regards,
> Etsuro Fujita

Thanks for confirming. Then I think this issue deserves a place on the open items list, so I just added it.

Best regards,
--
Chao Li (Evan)
HighGo Software Co., Ltd.
https://www.highgo.com/