Re: buffer refcount leak in foreign batch insert code - Mailing list pgsql-hackers

From Michael Paquier
Subject Re: buffer refcount leak in foreign batch insert code
Date
Msg-id ZEJiY99GN7l1a3s9@paquier.xyz
Whole thread Raw
In response to buffer refcount leak in foreign batch insert code  (Alexander Pyhalov <a.pyhalov@postgrespro.ru>)
Responses Re: buffer refcount leak in foreign batch insert code  (Michael Paquier <michael@paquier.xyz>)
List pgsql-hackers
On Fri, Apr 21, 2023 at 01:07:03PM +0300, Alexander Pyhalov wrote:
> We've found that in cases like the one attached, when we insert into foreign
> partition with batch_size set, buffer refcount leak is detected.
>
> The above example we see a dozen of similar messages:
>
> repro_small.sql:31: WARNING:  buffer refcount leak: [14621]
> (rel=base/16718/16732, blockNum=54, flags=0x93800000

Indeed, nice repro!  That's obviously wrong, I'll look into that.
--
Michael

Attachment

pgsql-hackers by date:

Previous
From: Alexander Pyhalov
Date:
Subject: buffer refcount leak in foreign batch insert code
Next
From: Anton Voloshin
Date:
Subject: duplicate function declaration in multirangetypes_selfuncs.c