Skip to content

sql: coherent handling of hidden session vars in info_schema#109872

Merged
craig[bot] merged 3 commits intocockroachdb:masterfrom
knz:20230901-hide-hiddden
Sep 1, 2023
Merged

sql: coherent handling of hidden session vars in info_schema#109872
craig[bot] merged 3 commits intocockroachdb:masterfrom
knz:20230901-hide-hiddden

Conversation

@knz
Copy link
Copy Markdown
Contributor

@knz knz commented Sep 1, 2023

Fixes #109870.
Epic: CRDB-28893

Release note (bug fix): Certain SQL session variables are meant
to be hidden from introspection but were showing up in
information_schema.session_variables, which was incoherent with the
handling in pg_catalog.pg_settings. This bug has now been fixed.

@knz knz requested a review from rafiss September 1, 2023 09:53
@cockroach-teamcity
Copy link
Copy Markdown
Member

This change is Reviewable

@knz
Copy link
Copy Markdown
Contributor Author

knz commented Sep 1, 2023

@rafiss the second and third commit are "nice to have"; i'm not too attached to them if you don't like them. LMK

Release note (bug fix): Certain SQL session variables are meant
to be hidden from introspection but were showing up in
`information_schema.session_variables`, which was incoherent with the
handling in `pg_catalog.pg_settings`. This bug has now been fixed.
@knz knz force-pushed the 20230901-hide-hiddden branch from 59c08e4 to c46ff93 Compare September 1, 2023 10:11
Copy link
Copy Markdown
Collaborator

@rafiss rafiss left a comment

Choose a reason for hiding this comment

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

thank you! the thing i'm less sure about is hiding the experimental settings. we don't do that for most experimental cluster settings. also, in the future if we start auto-generating docs for session variables, i think it could be good to include experimental settings too. however, i'm also fine to revisit this later at that point if you think it should be hidden now.

all the other changes lgtm; especially hiding the ones that are aliases

Reviewable status: :shipit: complete! 0 of 0 LGTMs obtained

@knz
Copy link
Copy Markdown
Contributor Author

knz commented Sep 1, 2023

i think it could be good to include experimental settings too

ok I will restore these.

knz added 2 commits September 1, 2023 17:35
Release note (sql change): The deprecated session variable
`idle_in_session_timeout` is now hidden from introspection. (It has
been known as `idle_session_timeout` for a while already.)
Release note (sql change): The session variable `ssl` is now visible
through introspection for better compatibility with PostgreSQL.

Release note (sql change): The session variable `session_user` is now
invisible through introspection, in a way consistent with
`session_authorization` and PostgreSQL.
@knz knz force-pushed the 20230901-hide-hiddden branch from c46ff93 to ba3358e Compare September 1, 2023 15:36
@knz
Copy link
Copy Markdown
Contributor Author

knz commented Sep 1, 2023

Done.

bors r=rafiss

@craig
Copy link
Copy Markdown
Contributor

craig bot commented Sep 1, 2023

Build succeeded:

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.

sql: hidden session vars are hidden in pg_catalog but not information_schema

3 participants