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

Open
wants to merge 6 commits into
base: postgresql-dialect
Choose a base branch
from

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.
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