Skip to content

Conversation

KevinBrolly
Copy link
Member

Postgres log_statement config allows logging of DDL statements by default. This can be very useful in some debugging scenarios, and also helpful for assisting users when tables have been accidentally DROP'ed or altered.

Postgres `log_statement` config allows logging of DDL statements by default. This can be very useful in some debugging scenarios, and also helpful for assisting users when tables have been accidentally `DROP`'ed or altered.
@KevinBrolly KevinBrolly requested a review from a team as a code owner January 23, 2025 10:43
statement_timeout = 120000
jit = off
pgaudit.log = 'ddl'
log_statement = 'ddl'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file is only included in container images, so not used for AWS projects

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@darora So I should edit it in the ansible conf, e.g. here (https://github.com/supabase/postgres/blob/develop/ansible/files/postgresql_config/postgresql.conf.j2#L543) so that it becomes the default for AWS projects?

@darora darora closed this Feb 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants