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

Remove early return from set_cursor_tuple_fraction #63

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

xathien
Copy link

@xathien xathien commented Mar 9, 2023

The early return removed the ability to override Postgres' default fraction of 0.1 with 1.0. A workaround was to use 0.99999 but that's a little bit ugly, so let's just always set the tuple fraction.

Alternatively, we could check the current fraction on the @connection and only change it if it's different, which would also allow us to revert the temporary fraction change afterward, but that's an adjustment for another PR.

Partially fixes #49

The early return removed the ability to override Postgres' default fraction of `0.1` with `1.0`. A workaround was to use `0.99999` but that's a little bit ugly, so let's just always set the tuple fraction.

Alternatively, we could check the current fraction on the `@connection` and only change it if it's different, which would also allow us to revert the temporary fraction change afterward, but that's an adjustment for another PR.

Partially fixes afair#49
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.

cursor_tuple_fraction doesn't get set
1 participant