Re: [BUG] Crash on pgbench initialization. - Mailing list pgsql-hackers

From Michael Paquier
Subject Re: [BUG] Crash on pgbench initialization.
Date
Msg-id ZL4zkJ68s4wICxhZ@paquier.xyz
Whole thread Raw
In response to [BUG] Crash on pgbench initialization.  ("Anton A. Melnikov" <aamelnikov@inbox.ru>)
Responses Re: [BUG] Crash on pgbench initialization.
List pgsql-hackers
On Sun, Jul 23, 2023 at 11:21:47PM +0300, Anton A. Melnikov wrote:
> After some research, found this happens when the LimitAdditionalPins() returns exactly zero.
> In the current master, this will happen e.g. if shared_buffers = 10MB and max_worker_processes = 40.
> Then the command "pgbench --initialize postgres" will lead to crash.
> See the backtrace attached.
>
> There is a fix in the patch applied. Please take a look on it.

Nice catch, issue reproduced here so I am adding an open item for now.
(I have not looked at the patch, yet.)
--
Michael

Attachment

pgsql-hackers by date:

Previous
From: Michael Paquier
Date:
Subject: Re: Support worker_spi to execute the function dynamically.
Next
From: Bharath Rupireddy
Date:
Subject: Re: Support worker_spi to execute the function dynamically.