RESET(7)
โจ RESET ๐
okay bestie, pull up a chair, because this one is short but it's lowkey important. this is the RESET page from the PostgreSQL 18.6 docs, and it's giving "small but mighty." ๐
NAME ๐ธ
RESET โ restore the value of a run-time parameter to the default value. periodt. ๐ซถ
SYNOPSIS โจ
RESET configuration_parameter
RESET ALL
that's it. two whole lines. iconic behavior honestly. ๐
DESCRIPTION ๐ฆ
okay so, RESET restores run-time parameters to their default values. and here's the tea: RESET is literally just an alternative spelling for
SET configuration_parameter TO DEFAULT
so if you already know SET, you already know this. go peek at SET(7) for the deets. ๐
now, what even is "the default value"? bestie, listen, this part matters. 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. and the actual source of that value might be:
- a compiled-in default
- the configuration file
- command-line options
- per-database or per-user default settings
any of those. ๐ซ
and here's the โจsubtleโจ thing that trips people up: this is not quite the same as defining it as "the value that the parameter had at session start." why? because if the value came from the configuration file, it will be reset to whatever is specified by the configuration file now. like, right now, as you're reading this. so if someone edited the config file mid-session, congrats, you get the new vibe. ๐
see Chapter 19 for details.
and the transactional behavior of RESET is the same as SET: its effects will be undone by transaction rollback. so if you roll back, everything goes back to how it was. no cap. ๐ซก
PARAMETERS ๐
configuration_parameterโ name of a settable run-time parameter. the available parameters are documented in Chapter 19 and on theSET(7)reference page. go look if you're curious, there's a lot of them bestie ๐ญALLโ resets all settable run-time parameters to default values. all of them. every single one. the whole roster. ๐ฅ
EXAMPLES ๐
set the timezone configuration variable to its default value:
RESET timezone;
boom. one line. slay. ๐
COMPATIBILITY ๐
RESET is a PostgreSQL extension. iykyk, it's a house specialty, not a standard thing. ๐
SEE ALSO โญ
ngl, if you came here looking for a long page, you got the short king of manpages and honestly? we love that for you. ๐
that's the whole thing, bestie ๐ง this was the RESET(7) page from the PostgreSQL 18.6 documentation, dated 2026. go reset something. or don't. either way you ate. ๐
โจ
๐ฆ where this page comes from
- alpine 3.23: postgresql18-doc 18.6-r0 ยท PostgreSQL
- alpine 3.24: postgresql18-doc 18.6-r0 ยท PostgreSQL
- arch rolling: postgresql 18.6-4 ยท PostgreSQL
- fedora 43: postgresql 18.6-1.fc43 ยท PostgreSQL
- fedora 43: postgresql 18.6-1.fc43 ยท PostgreSQL
- fedora 44: postgresql 18.6-1.fc44 ยท PostgreSQL
- fedora 44: postgresql 18.6-1.fc44 ยท PostgreSQL
- nixos 26.05: postgresql 18.6
- ubuntu resolute: postgresql-client-18 18.6-0ubuntu0.26.04.1 ยท PostgreSQL
- ubuntu stonking: postgresql-client-18 18.6-3build2 ยท PostgreSQL
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms