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

feat: support all 'spanner.*' options in pg_settings #2229

Merged
merged 7 commits into from
Jan 25, 2025

Conversation

olavloite
Copy link
Collaborator

Re-writes the pg_settings common table expression to use an array of jsonb instead of a list of UNION ALL statements. This circumvents the limitation that a query cannot contain more than 60 UNION ALLs, which means that we can put a larger value for the limitation on the number of settings included in the CTE. We still restrict the number of elements in the CTE to prevent the query text from becoming too long.

Re-writes the pg_settings common table expression to use an array of
jsonb instead of a list of UNION ALL statements. This circumvents the
limitation that a query cannot contain more than 60 UNION ALLs,
which means that we can put a larger value for the limitation on the
number of settings included in the CTE. We still restrict the number
of elements in the CTE to prevent the query text from becoming too
long.
@olavloite olavloite merged commit ffeedd2 into postgresql-dialect Jan 25, 2025
43 checks passed
@olavloite olavloite deleted the use-jsonb-for-pg-settings branch January 25, 2025 14:44
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.

1 participant