Dashboard Configuration
This extension is always enabled for PlanetScale databases and requires activation via the PlanetScale Dashboard. While the extension itself is always active, some of its parameters can be configured through the dashboard. To configure pginsights parameters:Parameters
Raw query collection
- Setting:
pginsights.raw_queries - Type: Boolean
- Default:
false
Enabling this setting may result in sensitive data that appears in queries being sent to PlanetScale, where it will be processed and stored in accordance with our privacy policy.
Schema name normalization
- Setting:
pginsights.normalize_schema_names - Type: Boolean
- Default:
false
select * from myschema.users where id = 1.
- With
pginsights.normalize_schema_namesset to false, the query will be reported in insights asselect * from myschema.users where id = $1 - With
pginsights.normalize_schema_namesset to true, the query will be reported in insights asselect * from $1.users where id = $2
Database Traffic Control shared memory size
- Setting:
traffic_control.shm_size - Type: Integer (bytes)
- Default:
64kB
64kB size tracks about 600 active budget entries at once. The maximum 1MB size tracks about 10,000 active budget entries.
Active budget entries are stored in an LRU cache. The limit applies to recently active values, not the total number of possible tag values.
Usage
The pginsights extension is automatically installed and enabled for all PlanetScale databases. You don’t need to manually create the extension - it’s always active and collecting query insights. The extension integrates with PlanetScale’s Query Insights dashboard to provide:- Query performance metrics
- Slow query identification
- Query pattern analysis
- Resource usage tracking

