turbot/gcp_compliance

Control: Ensure 'log_planner_stats' database flag for Cloud SQL PostgreSQL instance is set to 'off'

Description

The same SQL query can be executed in multiple ways and still produce different results. The PostgreSQL planner/optimizer is responsible to create an optimal execution plan for each query. The log_planner_stats flag controls the inclusion of PostgreSQL planner 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_planner_stats_database_flag_off

Snapshot and share results via Turbot Pipes:

powerpipe login
powerpipe control run gcp_compliance.control.sql_instance_postgresql_log_planner_stats_database_flag_off --share

SQL

This control uses a named query:

sql_instance_postgresql_log_planner_stats_database_flag_off

Tags