Skip to content

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

chore: update docs for logging

Div Aroracd4cdd4d23ff
diff --git a/apps/docs/pages/guides/platform/logs.mdx b/apps/docs/pages/guides/platform/logs.mdx
index 5ca95f3624a..b8547282fde 100644
--- a/apps/docs/pages/guides/platform/logs.mdx
+++ b/apps/docs/pages/guides/platform/logs.mdx
@@ -85,9 +85,15 @@ The Logs tab displays logs emitted during function execution.
## 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.