RESET(7)
π RESET(7) β the PostgreSQL glow-up for your settings β¨
okay bestie, so this is RESET from the PostgreSQL 17.11 docs, and honestly? it's the "undo" button your run-time parameters have been waiting for. let's get into it π«Ά
πΈ NAME πΈ
RESET β restores the value of a run-time parameter to the default value. it's giving factory settings reset, but make it database π
β¨ SYNOPSIS β¨
RESET configuration_parameter
RESET ALL
two ways to do the thing. pick your fighter π
π¦ DESCRIPTION π¦
so RESET restores run-time parameters to their default values. and lowkey, RESET is just an alternative spelling for:
SET configuration_parameter TO DEFAULT
like, same energy, different outfit. refer to SET(7) for details, bestie, that's where the deep lore lives π
now here's the part where you need to listen: 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 this value might be any of these cuties:
- a compiled-in default
- the configuration file
- command-line options
- per-database default settings
- 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, right now-now. not at session start. see Chapter 19 for details, iykyk π
the transactional behavior of RESET is the same as SET: its effects will be undone by transaction rollback. so if you roll back, it's like it never happened. no evidence, no receipts, nothing π
π 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 check those, they're iconic πALLβ resets all settable run-time parameters to default values. yes, all of them. the whole roster. main character move fr fr π₯
π EXAMPLES π
set the timezone configuration variable to its default value:
RESET timezone;
that's it. that's the example. slay β¨
π COMPATIBILITY π
RESET is a PostgreSQL extension. so if you're out here expecting other databases to know what this isβ¦ ngl, they don't π it's a PostgreSQL thing, and it's ours π
π SEE ALSO π
go read those too, bestie, they're literally the sibling pages π«Ά
ngl the one thing to keep in your notes app: RESET doesn't rewind to "session start" β it snaps back to whatever the default is right now, config file included. don't let anyone tell you otherwise π
and that's the whole page! brought to you by PostgreSQL 17.11, dated 2026 β see you in the next manual page, mwah ππ§β
π¦ where this page comes from
- opensuse-leap 16.0: postgresql17 17.11-160000.1.1 Β· PostgreSQL
- opensuse-leap 16.0: postgresql17 17.11-160000.1.1 Β· PostgreSQL
- opensuse-leap 16.0: postgresql17 17.11-160000.1.1 Β· PostgreSQL
- opensuse-leap 16.0: postgresql17 17.11-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