From 61103621c8ec19a8f1829b32421f03b40fc0d4fe Mon Sep 17 00:00:00 2001 From: Maximilian Bandle Date: Tue, 23 Jun 2026 14:08:55 +0200 Subject: [PATCH] Document reset setting --- content/references/sessions/settings.md | 28 ++++++++++++++++++------- 1 file changed, 21 insertions(+), 7 deletions(-) diff --git a/content/references/sessions/settings.md b/content/references/sessions/settings.md index 1b11fc9a..24f86899 100644 --- a/content/references/sessions/settings.md +++ b/content/references/sessions/settings.md @@ -3,12 +3,12 @@ title: "Reference: Set/Show Setting Statement" linkTitle: "Set/Show Setting" --- -The `set` and `show` statements allow you to inspect and change database and session settings. +The `SHOW`, `SET`, and `RESET` statements allow you to inspect and change database and session settings. Usage example: ```sql -show TimeZone; +SHOW TimeZone; ``` ```text @@ -19,19 +19,33 @@ show TimeZone; ``` ```sql -set timezone='US/Pacific'; +SET timezone='US/Pacific'; ``` -```text -SET 0 +To restore a setting to its default value, use `RESET`: + +```sql +RESET TimeZone; ``` ## Show all settings ```sql -show all; +SHOW ALL; +``` + +```text + name | setting | description +--------------------------------+-----------------------+--------------------------------------------------------- + allow_system_table_mods | off | Allows modifications of the structure of system tables. + ... + default_transaction_isolation | repeatable read | Sets the transaction isolation level of each new transaction. + ... + timezone | Europe/Berlin | Sets the time zone for displaying and interpreting time stamps. + ... +(n rows) ``` {{< callout type="info" >}} -For compatibility to existing PostgreSQL clients, CedarDB has many settings which are currently not used. +For compatibility with existing PostgreSQL clients, CedarDB accepts many settings that are currently silently ignored. {{< /callout >}}