Skip to content

Commit 6fdc1c2

Browse files
Update custom-postgres-config.mdx | added new supautil enabled settings (supabase#34001)
* Update custom-postgres-config.mdx | added new supautil enabled settings * Update custom-postgres-config.mdx
1 parent 98ab060 commit 6fdc1c2

File tree

1 file changed

+18
-12
lines changed

1 file changed

+18
-12
lines changed

apps/docs/content/guides/database/custom-postgres-config.mdx

Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -48,18 +48,24 @@ show "statement_timeout";
4848

4949
Some settings can only be modified by a superuser. Supabase pre-enables the [`supautils` extension](https://supabase.com/blog/roles-postgres-hooks#setting-up-the-supautils-extension), which allows the `postgres` role to retain certain superuser privileges. It enables modification of the below reserved configurations at the `role` level:
5050

51-
| Setting | Description |
52-
| ------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------ |
53-
| `auto_explain.log_min_duration` | Logs query plans taking longer than this duration. |
54-
| `auto_explain.log_nested_statements` | Log nested statements' plans. |
55-
| `log_min_messages` | Minimum severity level of messages to log. |
56-
| `pg_net.ttl` | Sets how long the [pg_net extension](/docs/guides/database/extensions/pg_net) saves responses |
57-
| `pg_net.batch_size` | Sets how many requests the [pg_net extension](/docs/guides/database/extensions/pg_net) can make per second |
58-
| `pgaudit.*` | Configures the [PGAudit extension](https://supabase.com/docs/guides/database/extensions/pgaudit). The `log_parameter` is still restricted to protect secrets |
59-
| `pgrst.*` | [`PostgREST` settings](https://docs.postgrest.org/en/stable/references/configuration.html#db-aggregates-enabled) |
60-
| `plan_filter.*` | Configures the [pg_plan_filter extension](https://supabase.com/docs/guides/database/extensions/pg_plan_filter) |
61-
| `session_replication_role` | Sets the session's behavior for triggers and rewrite rules. |
62-
| `track_io_timing` | Collects timing statistics for database I/O activity. |
51+
| Setting | Description |
52+
| ---------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
53+
| `auto_explain.*` | Configures the [auto_explain module](https://www.postgresql.org/docs/current/auto-explain.html). Can be configured to log execution plans for queries expected to exceed x seconds, including function queries. |
54+
| `log_lock_waits` | Controls whether a log message is produced when a session waits longer than [deadlock_timeout](https://www.postgresql.org/docs/current/runtime-config-locks.html#GUC-DEADLOCK-TIMEOUT) to acquire a lock. |
55+
| `log_min_duration_statement` | Causes the duration of each completed statement to be logged if the statement ran for at least the specified amount of time. |
56+
| `log_min_messages` | Minimum severity level of messages to log. |
57+
| `log_replication_commands` | Logs all replication commands |
58+
| `log_statement` | Controls which SQL statements are logged. Valid values are `none` (off), `ddl`, `mod`, and `all` (all statements). |
59+
| `log_temp_files` | Controls logging of temporary file names and sizes. |
60+
| `pg_net.ttl` | Sets how long the [pg_net extension](/docs/guides/database/extensions/pg_net) saves responses |
61+
| `pg_net.batch_size` | Sets how many requests the [pg_net extension](/docs/guides/database/extensions/pg_net) can make per second |
62+
| `pg_stat_statements.*` | Configures the [pg_stat_statements extension](https://www.postgresql.org/docs/current/pgstatstatements.html). |
63+
| `pgaudit.*` | Configures the [PGAudit extension](https://supabase.com/docs/guides/database/extensions/pgaudit). The `log_parameter` is still restricted to protect secrets |
64+
| `pgrst.*` | [`PostgREST` settings](https://docs.postgrest.org/en/stable/references/configuration.html#db-aggregates-enabled) |
65+
| `plan_filter.*` | Configures the [pg_plan_filter extension](https://supabase.com/docs/guides/database/extensions/pg_plan_filter) |
66+
| `session_replication_role` | Sets the session's behavior for triggers and rewrite rules. |
67+
| `track_io_timing` | Collects timing statistics for database I/O activity. |
68+
| `wal_compression` | This parameter enables compression of WAL using the specified compression method. |
6369

6470
For example, to enable `log_nested_statements` for the `postgres` role, execute:
6571

0 commit comments

Comments
 (0)