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

From: Etsuro Fujita <etsuro(dot)fujita(at)gmail(dot)com>
To: Chao Li <li(dot)evan(dot)chao(at)gmail(dot)com>
Cc: PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>, Corey Huinker <corey(dot)huinker(at)gmail(dot)com>
Subject: Re: postgres_fdw: fix cumulative stats after imported foreign-table stats
Date: 2026-06-13 09:32:33
Message-ID: CAPmGK14CKFNAYcjDfg624Ey0xtAfdd_0YWHQEAxko==dTXByjw@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi Chao,

On Fri, Jun 12, 2026 at 12:49 PM Chao Li <li(dot)evan(dot)chao(at)gmail(dot)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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message cca5507 2026-06-13 09:59:01 Re: Add “FOR UPDATE NOWAIT” lock details to the log.
Previous Message Chao Li 2026-06-13 06:01:40 Re: Fix SET EXPRESSION for virtual columns with whole-row dependencies