RESET(7)
β¨ RESET(7) β¨
okay bestie, so this is the RESET page from the PostgreSQL 16.15 Documentation β yes the whole manual, and yes we're doing this together, buckle up π
πΈ NAME πΈ
RESET β puts a run-time parameter back to its default value, like hitting undo on your settings β¨
π¦ SYNOPSIS π¦
RESET configuration_parameter
RESET ALL
π DESCRIPTION π
So RESET restores run-time parameters to their default values. That's the whole vibe. π
And lowkey, RESET is literally just an alternative spelling for:
SET configuration_parameter TO DEFAULT
so if you already read SET(7) you're kind of already an expert β go look at it for the details, iykyk.
Now here's the part that's giving subtle and you gotta pay attention: the default value is defined as the value 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. So many possibilities, honestly iconic π
And this is subtly different from defining it as "the value that the parameter had at session start" β and the reason is lowkey genius: if the value came from the configuration file, it'll be reset to whatever is specified by the configuration file now. Like, now now. Present tense. Chapter 20 has the details if you're obsessed (you should be).
The transactional behavior of RESET is the same as SET: its effects will be undone by transaction rollback. fr fr, roll it back and it's like it never happened π
π«Ά PARAMETERS π«Ά
configuration_parameterβ the name of a settable run-time parameter. All the available parameters are documented in Chapter 20 and on theSET(7)reference page πALLβ resets all settable run-time parameters to their default values. everyone gets a fresh start, we love a clean slate β¨
π EXAMPLES π
Set the timezone configuration variable to its default value:
RESET timezone;
that's it. that's the example. and it ate π₯
π COMPATIBILITY π
RESET is a PostgreSQL extension. it's our thing, not standard SQL's thing β you're welcome π
β SEE ALSO β
go read those too, bestie, they're the rest of the trio π§
and that's a wrap! π this lil masterpiece comes to you from PostgreSQL 16.15, dated 2026 β RESET(7), page closed, slay πβ¨
π¦ where this page comes from
- opensuse-leap 16.0: postgresql16 16.15-160000.1.1 Β· PostgreSQL
- opensuse-leap 16.0: postgresql16 16.15-160000.1.1 Β· PostgreSQL
- opensuse-leap 16.0: postgresql16 16.15-160000.1.1 Β· PostgreSQL
- opensuse-leap 16.0: postgresql16 16.15-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