On this page
Warning:
GA releases for CockroachDB v23.1 are no longer supported. Cockroach Labs will stop providing LTS Assistance Support for v23.1 LTS releases on November 13, 2025. Prior to that date, upgrade to a more recent version to continue receiving support. For more details, refer to the Release Support Policy.
The RESET
statement resets a session variable to its default value for the client session.
Required privileges
No privileges are required to reset a session setting.
Synopsis
Parameters
Parameter | Description |
---|---|
session_var |
The name of the session variable. |
Example
Tip:
You can use SET .. TO DEFAULT
to reset a session variable as well.> SET extra_float_digits = -10;
> SHOW extra_float_digits;
extra_float_digits
--------------------
-10
(1 row)
> SELECT random();
random
---------
0.20286
(1 row)
> RESET extra_float_digits;
> SHOW extra_float_digits;
extra_float_digits
--------------------
0
(1 row)
> SELECT random();
random
-------------------
0.561354028296755
(1 row)