Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

Merge pull request #15769 from supabase/da/update-log-docs

Terry Suttonbd6c00020500
diff --cc apps/docs/pages/guides/platform/logs.mdx
index cbf4486c460,b8547282fde..f1c430c4997
--- a/apps/docs/pages/guides/platform/logs.mdx
+++ b/apps/docs/pages/guides/platform/logs.mdx
@@@ -85,14 -85,20 +85,20 @@@ The Logs tab displays logs emitted duri
## Logging Postgres Queries
- By default, query logs are disabled for new Supabase projects, as they can reveal metadata about the contents of your database (such as table and column names).
+ By default, only DDL statements are logged for new Supabase projects.
- To enable query logs:
+ <Admonition type="note">
+
+ For projects created before 18th July 2023, statement execution logging is disabled completely by default.
+
+ </Admonition>
+
+ To enable query logs for other categories of statements:
-1. [Enable the pgAudit extension](https://app.supabase.com/project/_/database/extensions).
-2. [Restart your project](https://app.supabase.com/project/_/settings/general) using the **Fast database reboot** option.
+1. [Enable the pgAudit extension](https://supabase.com/dashboard/project/_/database/extensions).
+2. [Restart your project](https://supabase.com/dashboard/project/_/settings/general) using the **Fast database reboot** option.
3. Configure `pgaudit.log` (see below). Perform a fast reboot if needed.
-4. View your query logs under [Logs > Postgres Logs](https://app.supabase.com/project/_/logs/postgres-logs).
+4. View your query logs under [Logs > Postgres Logs](https://supabase.com/dashboard/project/_/logs/postgres-logs).
### Configuring `pgaudit.log`