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

Support session and backend extension configs #6811

Merged
merged 1 commit into from
Feb 12, 2024
Merged

Conversation

msullivan
Copy link
Member

This requires:

  • Some special handling for reflection, since extension settings
    don't show up in the views we look at normally
  • Updating _apply_session_config to work for extension configs
  • Making StateSerializerFactory able to include extension configs.

To test this, I fixed pg_trgm's configs. pg_trgm attempted to have
some backend configs, but the config object didn't extend
ExtensionConfig and also the backend_setting wasn't json. I added
some checks to the extension path to prevent this sort of mistake.

Database configs work too, and I tested it manually, but currently the
only reliable way to make database configs with backend settings take
effect is to restart the server, so no tests for that yet.

The other big motivation for this is pgvector probes, which I'll leave
for @vpetrovykh to follow up on.

This requires:
 * Some special handling for reflection, since extension settings
   don't show up in the views we look at normally
 * Updating _apply_session_config to work for extension configs
 * Making StateSerializerFactory able to include extension configs.

To test this, I fixed pg_trgm's configs. pg_trgm attempted to have
some backend configs, but the config object didn't extend
ExtensionConfig and also the backend_setting wasn't json.  I added
some checks to the extension path to prevent this sort of mistake.

Database configs work too, and I tested it manually, but currently the
only reliable way to make database configs with backend settings take
effect is to restart the server, so no tests for that yet.

The other big motivation for this is pgvector probes, which I'll leave
for @vpetrovykh to follow up on.
@msullivan msullivan merged commit 27286af into master Feb 12, 2024
23 checks passed
@msullivan msullivan deleted the ext-sess-conf branch February 12, 2024 19:21
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