Mods
GCP

Policy: GCP > SQL > Instance > Database Flags > PostgreSQL > Template

The template is used to generate the keys and values for database flags under GCP SQL instance.

Database flags are configurable parameters that allow to customize the behavior and performance of the Cloud SQL instance. These flags can be used to set various database engine options, such as enabling or disabling specific features, tuning performance settings, or adjusting the default behavior of the database. Changes to database flags usually require a restart of the instance to take effect.

Flags not defined in SQL Instance Databse Flags Template will not be modified or deleted. Setting a flag value to undefined or null will result in the flag being deleted.

Sample flags supported for PostgreSQL DB engine:

PostgreSQL: log_error_verbosity: default log_connections: on log_disconnections: on log_statement: ddl log_min_messages: log log_min_error_statement: panic log_min_duration_statement: -1 cloudsql.enable_pgaudit: on

See PostgreSQL database flags for more information.

Resource Types

This policy targets the following resource types:

Primary Policy

This policy is used with the following primary policy:

Controls

Policy Packs

This policy setting is used by the following policy packs:

Policy Specification

Schema Type
object
Default
{}
Examples [YAML]
  • log_error_verbosity: default
    log_connections: on
    log_disconnections: on
    log_statement: ddl
    log_min_messages: log
    log_min_error_statement: panic
    log_min_duration_statement: -1
    cloudsql.enable_pgaudit: on
    

Category

In Your Workspace

Developers