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

Connection changes #21

Merged
merged 2 commits into from
Aug 11, 2023
Merged

Connection changes #21

merged 2 commits into from
Aug 11, 2023

Conversation

conradludgate
Copy link

@conradludgate conradludgate commented Aug 8, 2023

  1. refactor query_raw_txt to use a pre-prepared statement

Doing type checking during the query is a bug as connection will end up reading in all rows from the response before any of the types get returned. this diminished the usefulness of the stream interface entirely.

  1. track ReadyForQuery on the connection and expose it on the clients

I want to remove tokio-postgres entirely in proxy soon, but looks like it will need more time and we want the transaction status checking sooner than that. So this is a stop gap. I don't like half measures but this will have to do.

@conradludgate conradludgate marked this pull request as ready for review August 8, 2023 13:38
@conradludgate conradludgate requested review from kelvich and skyzh August 8, 2023 13:55
Copy link
Member

@skyzh skyzh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shall we also add some test cases for prepared statements in the neon repo?

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.

2 participants