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)