Repository navigation
Conversation
|
Thanks, LGTM overall. I built the branch and verified that after planning a parallel DEDUP_SEMI join the backend only holds AccessShareLock on gp_segment_configuration, and concurrent readers / FTS probe requests are no longer blocked. Two minor suggestions (non-blocking):
|
e9dbf5c to
84694fc
Compare
Yes, I did more conservative approach in first commit. But releasing locks right away looks indeed safe, so did that.
Sure, well spotted, thanks. Should be fixed now. |
Parallel DEDUP SEMI planning reads gp_segment_configuration only to size worker identifiers. Use AccessShareLock for the lookup and release it after the scan; keep AccessExclusiveLock transaction-scoped for segment allocation. Add lock-mode checks and isolation coverage where a second session reads the catalog while the planner transaction remains open. Trigger query: SELECT sum(foo.a) FROM foo WHERE EXISTS (SELECT 1 FROM bar WHERE foo.a = bar.b); with parallel DEDUP SEMI enabled. Fixes apache#2350.
84694fc to
a8e922f
Compare
Alena0704
left a comment
There was a problem hiding this comment.
I agree with the diagnosis and the fix. Thanks for addressing this issue!
Fixes #2350
Parallel DEDUP SEMI planning reads the maximum dbid only to size worker identifiers. Use AccessShareLock for both planner paths, while segment allocation keeps AccessExclusiveLock.