Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 21 additions & 7 deletions content/references/sessions/settings.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 >}}
Loading