Re: use of SPI by postgresImportForeignStatistics
Etsuro Fujita <etsuro.fujita@gmail.com>
From: Etsuro Fujita <etsuro.fujita@gmail.com>
To: Corey Huinker <corey.huinker@gmail.com>
Cc: Robert Haas <robertmhaas@gmail.com>, "pgsql-hackers@postgresql.org" <pgsql-hackers@postgresql.org>
Date: 2026-06-18T10:42:56Z
Lists: pgsql-hackers
On Thu, Jun 18, 2026 at 1:00 AM Corey Huinker <corey.huinker@gmail.com> wrote: >> IMO I don't think we need to go that far, because 1) the new functions >> are provided for FDW authors only, and 2) we don't make changes to the >> stats that often. > > > That would be simpler, to be sure. However, in the past I've received pushback on functions that had a large number of parameters, and this would definitely be a large number of parameters, approximately 17, so I thought I should at least offer the variadic way. > > I'm proceeding with the many-parameters model. I think that that's acceptable, considering that heap_create_with_catalog() has 21 parameters. Thanks! Best regards, Etsuro Fujita