pganalyze / libpg_query

C library for accessing the PostgreSQL parser outside of the server environment
BSD 3-Clause "New" or "Revised" License
1.21k stars 182 forks source link

Add function to normalize only utility statements #255

Closed seanlinsley closed 2 months ago

seanlinsley commented 3 months ago

This PR introduces a pg_query_normalize_utility function which only normalizes utility statements. We're adding this so the pganalyze collector can redact database secrets from the Postgres logs in the case that log_min_duration_statement is set to zero.