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

proxy: update tokio-postgres to allow arbitrary config params #8076

Merged
merged 4 commits into from
Jun 24, 2024

Conversation

conradludgate
Copy link
Contributor

@conradludgate conradludgate commented Jun 17, 2024

Problem

Fixes #1287

Summary of changes

tokio-postgres now supports arbitrary server params through the param(key, value) method. Some keys are special so we explicitly filter them out.

Checklist before requesting a review

  • I have performed a self-review of my code.
  • If it is a core feature, I have added thorough tests.
  • Do we need to implement analytics? if so did you add the relevant metrics to the dashboard?
  • If this PR requires public announcement, mark it with /release-notes label and add several sentences in this section.

Checklist before merging

  • Do not forget to reformat commit message to not include the above checklist

@conradludgate
Copy link
Contributor Author

conradludgate commented Jun 17, 2024

Waiting on review for neondatabase/rust-postgres#30

Copy link

github-actions bot commented Jun 17, 2024

2916 tests run: 2799 passed, 0 failed, 117 skipped (full report)


Code coverage* (full report)

  • functions: 32.4% (6865 of 21174 functions)
  • lines: 49.8% (53375 of 107090 lines)

* collected from Rust tests only


The comment gets automatically updated with the latest test results
a284b36 at 2024-06-24T10:21:42.863Z :recycle:

@conradludgate conradludgate marked this pull request as ready for review June 20, 2024 10:41
@conradludgate conradludgate requested a review from a team as a code owner June 20, 2024 10:41
@conradludgate conradludgate enabled auto-merge (squash) June 24, 2024 10:10
@conradludgate conradludgate merged commit 78d9059 into main Jun 24, 2024
55 checks passed
@conradludgate conradludgate deleted the proxy-pg-config-changes branch June 24, 2024 10:20
@hlinnaka
Copy link
Contributor

Nice to see this long-standing issue fixed!

tokio-postgres now supports arbitrary server params through the param(key, value) method. Some keys are special so we explicitly filter them out.

This is only in our fork of tokio-postgres, right? Any plans to submit a PR to upstream?

@conradludgate
Copy link
Contributor Author

This is only in our fork of tokio-postgres, right? Any plans to submit a PR to upstream?

The fork has diverted massively at this point. I've struggled to even update the repo from upstream. I see it more likely that we should hard fork and start fresh for all the features proxy needs.

conradludgate added a commit that referenced this pull request Aug 9, 2024
…#8076)" (#8654)

This reverts #8076 - which was already reverted from the release branch
since forever (it would have been a breaking change to release for all
users who currently set TimeZone options). It's causing conflicts now so
we should revert it here as well.
jcsp pushed a commit that referenced this pull request Aug 12, 2024
…#8076)" (#8654)

This reverts #8076 - which was already reverted from the release branch
since forever (it would have been a breaking change to release for all
users who currently set TimeZone options). It's causing conflicts now so
we should revert it here as well.
hlinnaka added a commit that referenced this pull request Sep 7, 2024
We modified the crate in an incompatible way and upgraded to the new
version in PR #8076. However, it was reverted in #8654. The revert
reverted the Cargo.lock reference to it, but since Cargo.toml still
points to the (tip of the) 'neon' branch, every time you make any
other unrealted changes to Cargo.toml, it also tries to update the
rust-postgres crates to the tip of the 'neon' branch again, which
doesn't work.
hlinnaka added a commit that referenced this pull request Sep 7, 2024
We modified the crate in an incompatible way and upgraded to the new
version in PR #8076. However, it was reverted in #8654. The revert
reverted the Cargo.lock reference to it, but since Cargo.toml still
points to the (tip of the) 'neon' branch, every time you make any
other unrelated changes to Cargo.toml, it also tries to update the
rust-postgres crates to the tip of the 'neon' branch again, which
doesn't work.

To fix, lock the crates to the exact commit SHA that works.
hlinnaka added a commit that referenced this pull request Sep 7, 2024
We modified the crate in an incompatible way and upgraded to the new
version in PR #8076. However, it was reverted in #8654. The revert
reverted the Cargo.lock reference to it, but since Cargo.toml still
points to the (tip of the) 'neon' branch, every time you make any other
unrelated changes to Cargo.toml, it also tries to update the
rust-postgres crates to the tip of the 'neon' branch again, which
doesn't work.

To fix, lock the crates to the exact commit SHA that works.
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.

Forward parameters to compute in proxy
3 participants