test: add receive two-session lock harness#175
Merged
NikolayS merged 2 commits intoNikolayS:mainfrom May 6, 2026
Merged
Conversation
NikolayS
reviewed
May 3, 2026
NikolayS
reviewed
May 3, 2026
NikolayS
reviewed
May 3, 2026
NikolayS
reviewed
May 3, 2026
NikolayS
reviewed
May 3, 2026
NikolayS
reviewed
May 3, 2026
Owner
|
thanks @alceops!! left some comments above |
NikolayS
added a commit
that referenced
this pull request
May 6, 2026
Fixes the follow-up from #175: synchronize session2 launch on session1 being visibly inside pg_sleep() with an open transaction, rather than polling uncommitted sub_batch state.
Owner
|
Follow-up status for #175:
Thanks @alceops for the original harness contribution. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds an optional two-session
psqlharness for the same-consumerpgque.receive()race discussed in #125.The existing SQL regression coverage is single-session, so this script opens two real backend sessions:
pgque.receive()for the same(queue, consumer)I left it as an explicit script instead of wiring it into CI because it is meant as a red/green validator for the held #125 fix: current pre-fix code fails, while the row-lock fix should make it pass.
Verification run locally against current
maininstall (expected red):