Skip to content

Commit 77d522e

Browse files
add alter system command and use it for system wide session config (#2092)
* feat(session_config) * Update view-configure-system-parameters.md * add alter system command and made small modification * Update docs/manage/view-configure-runtime-parameters.md --------- Co-authored-by: Shanlan(Lily) <150168166+ShanlanLi@users.noreply.github.com>
1 parent 3289e7f commit 77d522e

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

docs/manage/view-configure-runtime-parameters.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,3 +98,10 @@ SET parameter_name { TO | = } { value | 'value' | DEFAULT};
9898
Where `parameter_name` is the name of the parameter, and `value` or `'value'` is the new value of the parameter. `DEFAULT` can be written to specify resetting the parameter to its default value.
9999

100100
For details about the `set_config()` function, see [System administration functions](/sql/functions-operators/sql-function-sys-admin.md#set_config), and for details about the `SET` command, see [`SET`](/sql/commands/sql-set.md).
101+
102+
103+
You can also use the [`ALTER SYSTEM SET`](/sql/commands/sql-alter-system.md) command to set a system-wide default value for a runtime parameter. This configuration will then be applied to every new session.
104+
105+
```sql title="Syntax"
106+
ALTER SYSTEM SET session_param_name TO session_param_value;
107+
```

docs/sql/commands/sql-alter-system.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
id: sql-alter-system
3+
title: ALTER SYSTEM
4+
description: Modify a server configuration parameter.
5+
slug: /sql-alter-system
6+
---
7+
<head>
8+
<link rel="canonical" href="https://docs.risingwave.com/docs/current/sql-alter-system/" />
9+
</head>
10+
11+
The `ALTER SYSTEM` command modifies the value of a server configuration parameter. You can use this command to configure some parameters, like the [system parameters](/manage/view-configure-system-parameters.md#how-to-configure-system-parameters) and [runtime parameters](/manage/view-configure-runtime-parameters.md#how-to-configure-runtime-parameters).
12+
13+
```sql title="Syntax"
14+
ALTER SYSTEM SET configuration_parameter { TO | = } { value [, ...] | DEFAULT }
15+
```
16+
17+
18+
```sql title="Examples"
19+
ALTER SYSTEM SET rw_streaming_enable_delta_join TO true;
20+
```
21+

0 commit comments

Comments
 (0)