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

add notes for session var #82

Merged
merged 4 commits into from
Nov 27, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion operate/view-configure-runtime-parameters.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ title: "View and configure runtime parameters"

## What are runtime parameters?

Runtime parameters are variables that can be set at runtime to configure the behavior of RisingWave.
Runtime parameters are variables that can be set at runtime to configure the behavior of RisingWave. They are also known as session variables.

## How to view runtime parameters?

Expand Down Expand Up @@ -94,8 +94,16 @@ Where `parameter_name` is the name of the parameter, and `value` or `'value'` is

For details about the `set_config()` function, see [System administration functions](/sql/functions/sys-admin#set-config), and for details about the `SET` command, see [SET](/sql/commands/sql-set).

<Note>
`SET` applies only to the current session.
</Note>

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.

<Note>
`ALTER SYSTEM SET` takes effect in new sessions. The value of the runtime parameter remains unchanged in the current session.
</Note>

```sql Syntax
ALTER SYSTEM SET session_param_name TO session_param_value;
```
Loading