RESET

RESET restores the value of a session variable to its default value. This command is an alternative spelling for SET...TO DEFAULT.

To see the current value of a session variable, use SHOW.

Syntax

RESET variable_name
Field Use
variable_name The session variable name.

Session variables

Name Default value Description Settable
cluster quickstart The current cluster. Yes
cluster_replica The target cluster replica for SELECT queries. Yes
database materialize The current database. Yes
search_path public The schema search order for names that are not schema-qualified. Yes
transaction_isolation strict serializable The transaction isolation level. For more information, see Consistency guarantees.

Accepts values: serializable, strict serializable.
Yes

Other session variables

Name Default value Description Settable
auto_route_introspection_queries true Boolean flag indicating whether to force queries that depend only on system tables to run on the mz_introspection cluster for improved performance. No
application_name The application name to be reported in statistics and logs. This variable is typically set by an application upon connection to Materialize (e.g. psql). Yes
client_encoding UTF8 The client’s character set encoding. The only supported value is UTF-8. Yes
client_min_messages notice The message levels that are sent to the client.

Accepts values: debug5, debug4, debug3, debug2, debug1, log, notice, warning, error. Each level includes all the levels that follow it.
Yes
datestyle ISO, MDY The display format for date and time values. The only supported value is ISO, MDY. Yes
emit_introspection_query_notice true Whether to print a notice when querying replica introspection relations. No
emit_timestamp_notice false Boolean flag indicating whether to send a notice specifying query timestamps. No
emit_trace_id_notice false Boolean flag indicating whether to send a notice specifying the trace ID, when available. No
enable_session_rbac_checks false Read-only. Boolean flag indicating whether RBAC is enabled for the current session. No
extra_float_digits 3 Boolean flag indicating whether to adjust the number of digits displayed for floating-point values. Yes
failpoints Allows failpoints to be dynamically activated. No
idle_in_transaction_session_timeout 120 seconds The maximum allowed duration that a session can sit idle in a transaction before being terminated. If this value is specified without units, it is taken as milliseconds. A value of zero disables the timeout. Yes
integer_datetimes true Read-only. Boolean flag indicating whether the server uses 64-bit-integer dates and times. No
intervalstyle postgres The display format for interval values. The only supported value is postgres. Yes
is_superuser Read-only. Reports whether the current session is a superuser with admin privileges. No
max_identifier_length 255 Read-only. The maximum length in bytes of object identifiers. No
max_query_result_size 1073741824 The maximum size in bytes for a single query’s result. No
mz_version Version-dependent Read-only. Shows the Materialize server version. No
server_version Version-dependent Read-only. The PostgreSQL compatible server version. No
server_version_num Version-dependent Read-only. The PostgreSQL compatible server version as an integer. No
sql_safe_updates false Boolean flag indicating whether to prohibit SQL statements that may be overly destructive. No
standard_conforming_strings true Boolean flag indicating whether ordinary string literals ('...') should treat backslashes literally. The only supported value is true. No
statement_timeout 10 seconds The maximum allowed duration of INSERT, UPDATE, and DELETE operations. If this value is specified without units, it is taken as milliseconds. Yes
timezone UTC The time zone for displaying and interpreting timestamps. The only supported value is UTC. Yes

Examples

Reset search path

SHOW search_path;

 search_path
-------------
 qck

RESET search_path;

SHOW search_path;

 search_path
-------------
 public
Back to top ↑