RESET(7)
π RESET(7) β the "jk, put it back" command
okay so picture this: it's RESET(7), straight out of the PostgreSQL 14.24 Documentation, and she's here to undo your little parameter experiments. no cap. π
β¨ NAME β¨
RESET β restores the value of a run-time parameter to the default value. it's the ultimate "never mind, forget I said anything" of SQL. π«Ά
πΈ SYNOPSIS πΈ
RESET configuration_parameter
RESET ALL
that's it. two forms. one of them names a thing, the other one nukes every settable thing back to factory settings. both iconic. β¨
π¦ DESCRIPTION π¦
RESET restores run-time parameters to their default values. and honestly? RESET is just a cute little alternative spelling for
SET configuration_parameter TO DEFAULT
same energy, shorter vibe. go read SET(7) for the whole story π
now here's the part everyone gets confused about, so listen up bestie: the default value is defined as the value that the parameter would have had if no SET had ever been issued for it in the current session. the actual source of that value might be a compiled-in default, the configuration file, command-line options, or per-database or per-user default settings.
and this is subtly different from defining it as "the value that the parameter had at session start" β because if the value came from the configuration file, it will be reset to whatever is specified by the configuration file now. like, the current file. not the file from earlier. keep up, she's dynamic π see Chapter 20 for deets.
the transactional behavior of RESET is the same as SET: its effects will be undone by transaction rollback. so if you change your mind mid-transaction, the database respects it. queen behavior. π
π§ PARAMETERS π§
configuration_parameterβ name of a settable run-time parameter. which parameters exist? documented in Chapter 20 and on theSET(7)reference page. you know where to look πALLβ resets all settable run-time parameters to default values. all of them. every last one. it's giving spring cleaning πΈ
π₯ EXAMPLES π₯
set the timezone configuration variable to its default value:
RESET timezone;
clean, simple, slays every time β
π COMPATIBILITY π
RESET is a PostgreSQL extension. so like, don't expect other databases to get the reference, iykyk π
π SEE ALSO π
bestie trio fr fr β one sets it, one shows it, one resets it. the whole friend group π«Ά
written against PostgreSQL 14.24, dated 2026 β this page, RESET(7), is out now. go reset something, you've earned it π
π¦ where this page comes from
- opensuse-leap 16.0: postgresql14 14.24-160000.1.1 Β· PostgreSQL
- opensuse-leap 16.0: postgresql14 14.24-160000.1.1 Β· PostgreSQL
- opensuse-leap 16.0: postgresql14 14.24-160000.1.1 Β· PostgreSQL
- opensuse-leap 16.0: postgresql14 14.24-160000.1.1 Β· PostgreSQL
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms