Skip to content

feat: add read-only version number GUC - #87

Open
AndrewJackson2020 wants to merge 2 commits into
mainfrom
binary_version_guc
Open

AndrewJackson2020 wants to merge 2 commits into
mainfrom
binary_version_guc

Conversation

@AndrewJackson2020

@AndrewJackson2020 AndrewJackson2020 commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

This PR adds a read only GUC that allows users and administrators to verify the binary version of the extension. Starting with pg18 this functionality will no longer be needed as postgres provides an interface to access this information natively. This PR corresponds with a previous PR in supautils linked below [0]. There is also a corresponding PR to get this implemented in pg_net [1] as well.

[0] supabase/supautils#252
[1] supabase/pg_net#339

Comment thread test/expected/test.out
t
(1 row)

SHOW vault.version;

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I am bit against adding static values here which needs to be changed in every release. May be we can come up with other ways to check this. For ex: supabase/supautils@d206e30

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Agree, this will get DRYd out.

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