RESET SQL - Language Statements RESET restore the value of a run-time parameter to the default value RESET RESET configuration_parameter RESET ALL RESET { PLANS | SESSION | TEMP | TEMPORARY } Description RESET restores run-time parameters to their default values. RESET is an alternative spelling for SET configuration_parameter TO DEFAULT Refer to for details. The default value is defined as the value that the parameter would have had, if no SET ever been issued for it in the current session. The actual source of this value might be a compiled-in default, the configuration file, command-line options, or per-database or per-user default settings. See for details. See the SET reference page for details on the transaction behavior of RESET. RESET can also be used to release internal resources that are usually released at the end of session. RESET TEMP drops all temporary tables created in the current session. RESET PLANS releases all internally cached plans. RESET SESSION releases all externally visible temporary resources associated with the current session. Parameters configuration_parameter The name of a run-time parameter. See for a list. ALL Resets all settable run-time parameters to default values. TEMP, TEMPORARY Drops all temporary tables created in the current session. PLANS Releases all cached query plans. SESSION Releases all temporary resources associated with the current session. This has the same effect as executing the following command sequence: SET SESSION AUTHORIZATION DEFAULT; RESET ALL; DEALLOCATE ALL; CLOSE ALL; UNLISTEN *; RESET PLANS; RESET TEMP; Notes RESET SESSION cannot be executed inside a transaction block. Examples Set the geqo configuration variable to its default value: RESET geqo; Compatibility RESET is a PostgreSQL extension.