Sharing DSA pointer between parallel workers after they've been created - Mailing list pgsql-general

From Ma, Marcus
Subject Sharing DSA pointer between parallel workers after they've been created
Date
Msg-id 24228FB7-D13D-431D-B4A1-28F4A0C343C7@amazon.com
Whole thread Raw
Responses Re: Sharing DSA pointer between parallel workers after they've been created  (Joshua Drake <jd@commandprompt.com>)
List pgsql-general

Hey,

 

I’m currently working on a parallelization optimization of the Sequential Scan in the codebase, and I need to share information between the workers as they scan a relation. I’ve done a decent amount of testing, and I know that the parallel workers all share the same dsa_area in the plan state. However, by the time I’m actually able to allocate a dsa_pointer via dsa_allocate0(), the separate parallel workers have already been created so I can’t actually share the pointer with them. Since the workers all share the same dsa_area, all I need to do is be able to share the single dsa_pointer with them but so far I’ve been out of luck. Any advice?

 

Marcus

pgsql-general by date:

Previous
From: Kyotaro Horiguchi
Date:
Subject: Re: FATAL: could not receive timeline history file from the primary server: ERROR: could not open file "pg_wal/0000000x.history": No such file or directory
Next
From: Peter Adlersburg
Date:
Subject: Fwd: message log merge (streaming replication)