Control: Ensure 'log_parser_stats' database flag for Cloud SQL PostgreSQL instance is set to 'off'
Description
The PostgreSQL planner/optimizer is responsible to parse and verify the syntax of each query received by the server. If the syntax is correct a parse tree is built up else an error is generated. The log_parser_stats flag controls the inclusion of parser performance statistics in the PostgreSQL logs for each query.
Usage
Run the control in your terminal:
powerpipe control run gcp_compliance.control.sql_instance_postgresql_log_parser_stats_database_flag_off
Snapshot and share results via Turbot Pipes:
powerpipe loginpowerpipe control run gcp_compliance.control.sql_instance_postgresql_log_parser_stats_database_flag_off --share
SQL
This control uses a named query:
sql_instance_postgresql_log_parser_stats_database_flag_off