Re: postgres_fdw: statistics import can silently fall back to sampling across encodings

From: Etsuro Fujita <etsuro(dot)fujita(at)gmail(dot)com>
To: Baji Shaik <baji(dot)pgdev(at)gmail(dot)com>
Cc: PostgreSQL-development <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: postgres_fdw: statistics import can silently fall back to sampling across encodings
Date: 2026-12-03 11:50:07
Message-ID: CAPmGK14Q2hHEuLizzfKbxbzHHQAWDstRqLHYKu0VVO3sC2NG2A@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Wed, Dec 2, 2026 at 11:35 PM Baji Shaik <baji(dot)pgdev(at)gmail(dot)com> wrote:
> On Wed, Dec 2, 2026 at 5:31 AM Etsuro Fujita <etsuro(dot)fujita(at)gmail(dot)com> wrote:
>> I updated the patch as above. Attached is an updated version of the
>> patch, in which I also updated some comments and the documentation.
>
> Thanks for the review and the updated patch. I agree with all the
> changes.
>
> I tested it on master. make check in contrib/postgres_fdw passes,
> including the new stats_import.pl. With an EUC_JP remote and a UTF-8
> local database, a table with non-ASCII column names now falls back to
> sampling with the warning, and one with ASCII names still imports its
> statistics.
>
> One nitpick: there's a typo in the new warning, "beccause" should be
> "because".

Good catch! Will fix.

I will push the patch (after fixing the typo) and backpatch it, if no
objections from others.

Thanks for reviewing!

Best regards,
Etsuro Fujita

In response to

Browse pgsql-hackers by date

  From Date Subject
Previous Message Jan Nidzwetzki 2026-12-03 11:40:25 Re: pg_rewind WAL segments deletion pitfall