Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stop treating ReadyForQuery as a universal result indicator #362

Merged
merged 1 commit into from
Sep 17, 2018

Conversation

elprans
Copy link
Member

@elprans elprans commented Sep 14, 2018

ReadyForQuery is special in auth and simple query flows, where it does
signal the final confirmation of the result, but in all other flows
other, more specific messages do that. Now, asyncpg will use the
rules of a particular subprotocol when determining the timing of the
result waiter wakeup. These changes also make most cases of Sync
emission unnecessary, although that cleanup will be addressed in
subsequent commits. This consolidation also results in a nice
reduction of duplicated code.

@elprans elprans requested a review from 1st1 September 14, 2018 01:25
@elprans elprans force-pushed the proto-refactor branch 2 times, most recently from ca72432 to e939255 Compare September 14, 2018 14:50
ReadyForQuery is special in auth and simple query flows, where it _does_
signal the final confirmation of the result, but in all other flows
other, more specific messages do that.  Now, asyncpg will use the
rules of a particular subprotocol when determining the timing of the
result waiter wakeup.  These changes also make most cases of Sync
emission unnecessary, although that cleanup will be addressed in
subsequent commits.  This consolidation also results in a nice
reduction of duplicated code.
@elprans elprans merged commit 7a81613 into master Sep 17, 2018
@elprans elprans deleted the proto-refactor branch September 17, 2018 23:00
@elprans elprans mentioned this pull request Sep 18, 2018
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants