Re: use of SPI by postgresImportForeignStatistics - Mailing list pgsql-hackers

From Etsuro Fujita
Subject Re: use of SPI by postgresImportForeignStatistics
Date
Msg-id CAPmGK14nAf_+Ge4cfgEcJ07d0=3=GmVdEO-bGWfvi_5SNb8mgA@mail.gmail.com
Whole thread
In response to Re: use of SPI by postgresImportForeignStatistics  (Etsuro Fujita <etsuro.fujita@gmail.com>)
List pgsql-hackers
On Fri, Jul 17, 2026 at 6:59 PM Etsuro Fujita <etsuro.fujita@gmail.com> wrote:
> Here is a (further) cleanup:
>
> postgres_fdw passes the remote-server version, which is of type int,
> to the new stats-import functions, using UInt32GetDatum not
> Int32GetDatum.  This is completely harmless because the version is 1)
> positive and 2) currently ignored in those functions, but let's modify
> that code to use Int32GetDatum for consistency.  Attached is a small
> patch for that.  I'll push and back-patch it if no objections.

Pushed and backpatched to v19.

Best regards,
Etsuro Fujita



pgsql-hackers by date:

Previous
From: Andrey Borodin
Date:
Subject: Re: walsummarizer can get stuck when switching timelines
Next
From: Etsuro Fujita
Date:
Subject: Re: Bug in asynchronous Append