RESET(7)

πŸ“¦ version 14.24, in opensuse-leap 16.0

πŸ’… 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 the SET(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 🌈

SET(7), SHOW(7)

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