Re: buffer refcount leak in foreign batch insert code

Michael Paquier <michael@paquier.xyz>

From: Michael Paquier <michael@paquier.xyz>
To: Alexander Pyhalov <a.pyhalov@postgrespro.ru>
Cc: pgsql-hackers@postgresql.org
Date: 2023-04-25T01:30:42Z
Lists: pgsql-hackers
On Mon, Apr 24, 2023 at 09:57:10AM +0900, Michael Paquier wrote:
> The attached is what I am finishing with, with a minimal regression
> test added to postgres_fdw.  Two partitions are enough.

Well, I have gone through that again this morning, and applied the fix
down to 14.  The buildfarm is digesting it fine.
--
Michael

Commits

  1. Fix buffer refcount leak with FDW bulk inserts

  2. Optimize creation of slots for FDW bulk inserts