Re: Import Statistics in postgres_fdw before resorting to sampling.
Corey Huinker <corey.huinker@gmail.com>
From: Corey Huinker <corey.huinker@gmail.com>
To: Etsuro Fujita <etsuro.fujita@gmail.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>,
Ashutosh Bapat <ashutosh.bapat.oss@gmail.com>, Michael Paquier <michael@paquier.xyz>, pgsql-hackers@postgresql.org,
jkatz@postgresql.org, nathandbossart@gmail.com
Date: 2026-05-26T20:31:47Z
Lists: pgsql-hackers
On Sat, May 16, 2026 at 5:10 AM Etsuro Fujita <etsuro.fujita@gmail.com> wrote: > On Thu, May 14, 2026 at 8:35 PM Etsuro Fujita <etsuro.fujita@gmail.com> > wrote: > > I'll push the updated patch if no objections from you (or anyone else). > > Pushed. I closed the open item as well. > > Best regards, > Etsuro Fujita > My own apologies for a late reply. I agree that the second method was the better fix, and I agree with your changes (making free_remattrmap tolerant of null maps, and moving the if-tests to asserts).