sql: show a notice when SET CLUSTER SETTING sql.defaults... is used #80325
Labels
C-enhancement
Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)
T-sql-foundations
SQL Foundations Team (formerly SQL Schema + SQL Sessions)
Is your feature request related to a problem? Please describe.
We should direct people to start using the ALTER ROLE syntax for session variable defaults.
Describe the solution you'd like
Modify
func (n *setClusterSettingNode) startExec
in pkg/sql/set_cluster_setting.go so that it shows a notice when a sql.defaults cluster setting is used. The message should just mention thatALTER ROLE ... SET
syntax can control session variable defaults at a finer-grained level, and link to the docs.Use
params.p.BufferClientNotice()
to send the message.Epic CRDB-10463
Jira issue: CRDB-15766
The text was updated successfully, but these errors were encountered: