Re: buffer refcount leak in foreign batch insert code

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: Alexander Pyhalov <a(dot)pyhalov(at)postgrespro(dot)ru>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: buffer refcount leak in foreign batch insert code
Date: 2023-04-21 10:16:03
Message-ID: ZEJiY99GN7l1a3s9@paquier.xyz
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Anton Voloshin 2023-04-21 10:32:01 duplicate function declaration in multirangetypes_selfuncs.c
Previous Message Alexander Pyhalov 2023-04-21 10:07:03 buffer refcount leak in foreign batch insert code