-
Notifications
You must be signed in to change notification settings - Fork 513
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
feat(compute_ctl): pass compute type to pageserver with pg_options #11287
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Alex Chi Z <[email protected]>
86dd34f
to
d60fa40
Compare
If this PR added a GUC in the Postgres fork or
If you're an external contributor, a Neon employee will assist in |
@@ -2549,6 +2549,40 @@ where | |||
if let Some(app_name) = params.get("application_name") { | |||
Span::current().record("application_name", field::display(app_name)); | |||
} | |||
if let Some(options) = params.get("options") { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would it be better to just parse it with clap?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there's also -cXXX
which I just fixed, this syntax is not supported by clap.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks pretty solid to me!
7964 tests run: 7580 passed, 0 failed, 384 skipped (full report)Flaky tests (4)Postgres 17
Code coverage* (full report)
* collected from Rust tests only The comment gets automatically updated with the latest test results
7a9fe7b at 2025-03-18T22:20:34.625Z :recycle: |
Signed-off-by: Alex Chi Z <[email protected]>
Signed-off-by: Alex Chi Z <[email protected]>
d643af6
to
7a9fe7b
Compare
Problem
second try of #11185, part of https://github.com/neondatabase/cloud/issues/24706
Summary of changes
Tristan reminded me of the
options
field of the pg wire protocol, which can be used to pass configurations. This patch adds the parsing on the pageserver side, and suppliesneon.endpoint_type
as part of theoptions
.