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 >}}