Skip to main content
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

reset_session syntax diagram

Parameters

Example

You can use SET.. TO DEFAULT to reset a session variable as well.

Known limitations

SET and RESET do not properly apply ROLLBACK within a transaction. For example, in the following transaction, showing the TIME ZONE variable does not return 2 as expected after the rollback:

See also