From 991b35f3afe569bc028a6601ff7217ba014c923f Mon Sep 17 00:00:00 2001 From: xxchan Date: Tue, 26 Nov 2024 20:31:44 +0800 Subject: [PATCH] add a note for alter system set session var Signed-off-by: xxchan --- operate/view-configure-runtime-parameters.mdx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/operate/view-configure-runtime-parameters.mdx b/operate/view-configure-runtime-parameters.mdx index 25fdc325..98eddc3d 100644 --- a/operate/view-configure-runtime-parameters.mdx +++ b/operate/view-configure-runtime-parameters.mdx @@ -96,6 +96,10 @@ For details about the `set_config()` function, see [System administration functi You can also use the [ALTER SYSTEM SET](/sql/commands/sql-alter-system) command to set a system-wide default value for a runtime parameter. This configuration will then be applied to every new session. + +`ALTER SYSTEM SET` only takes effect for new sessions. The value of the runtime parameter will stay unchanged in the current session. + + ```sql Syntax ALTER SYSTEM SET session_param_name TO session_param_value; ```