Re: BUG #16914: Regression test of the worker_spi fails if USE_MODULE_DB environment variable is set.

From: Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>
To: Michael Paquier <michael(at)paquier(dot)xyz>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, r(dot)zharkov(at)postgrespro(dot)ru, pgsql-bugs(at)lists(dot)postgresql(dot)org
Subject: Re: BUG #16914: Regression test of the worker_spi fails if USE_MODULE_DB environment variable is set.
Date: 2021-03-05 13:43:31
Message-ID: 20210305134331.GA22496@alvherre.pgsql
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

On 2021-Mar-05, Michael Paquier wrote:

> Or we could just rely on a custom memory context that dynamic workers
> could use to store their data? It could be simpler IMO to just merge
> together bgw_main_arg and bgw_extra, then pass down the whole as an
> argument of the main routine of the bgworker, say with a buffer of 256
> bytes for example.

I think the only way to make that work portably is by using shared memory.

--
Álvaro Herrera Valdivia, Chile
"La rebeldía es la virtud original del hombre" (Arthur Schopenhauer)

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message David Steele 2021-03-05 16:25:12 Re: posgres 12 bug (partitioned table)
Previous Message David Steele 2021-03-05 12:55:43 Re: BUG #16894: PANIC: WAL contains references to invalid pages