pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvaro Herrera <alvherre@alvh.no-ip.org>
To: Michael Paquier <michael@paquier.xyz>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: r.zharkov@postgrespro.ru
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #16914: Regression test of the worker_spi fails if USE_MODULE_DB environment variable is set.
Date: Fri, 5 Mar 2021 10:43:31 -0300
Message-ID: <20210305134331.GA22496@alvherre.pgsql> (raw)
In-Reply-To: <YEHNbqufuVecA9IS@paquier.xyz>

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)





view thread (8+ messages)

Message-ID: <20210305134331.GA22496@alvherre.pgsql>
Permalink:  ../20210305134331.GA22496@alvherre.pgsql/
Also on:    postgresql.org/message-id/20210305134331.GA22496@alvherre.pgsql

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-bugs@postgresql.org
  Cc: alvherre@alvh.no-ip.org, michael@paquier.xyz, tgl@sss.pgh.pa.us, r.zharkov@postgrespro.ru, pgsql-bugs@lists.postgresql.org
  Subject: Re: BUG #16914: Regression test of the worker_spi fails if USE_MODULE_DB environment variable is set.
  In-Reply-To: <20210305134331.GA22496@alvherre.pgsql>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox