Sharing DSA pointer between parallel workers after they've been created

From: "Ma, Marcus" <marcjma(at)amazon(dot)com>
To: "pgsql-hackers(at)lists(dot)postgresql(dot)org" <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Sharing DSA pointer between parallel workers after they've been created
Date: 2022-06-09 18:36:21
Message-ID: F5CF3011-4505-46F4-AB4C-D657A5CA4BC3@amazon.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

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

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Geoghegan 2022-06-09 18:36:37 Re: Collation version tracking for macOS
Previous Message Peter Geoghegan 2022-06-09 18:22:37 Re: Collation version tracking for macOS