Enable pg_stat_statements on the authentik postgres cluster #475

Merged
benvin merged 1 commits from benvin/authentik-pg-stat-statements into main 2026-09-19 14:48:46 +10:00
Member

The cluster preloads no statement-statistics library, so there is no per-query cost attribution in postgres and slow query paths have to be inferred from application-side metrics instead of read straight out of the database.

  • preload pg_stat_statements
  • set pg_stat_statements.max and .track, which is what makes CNPG manage the extension and create it in every database

Requires a postgres restart. Stacked on benvin/authentik-cnpg-resources.

The cluster preloads no statement-statistics library, so there is no per-query cost attribution in postgres and slow query paths have to be inferred from application-side metrics instead of read straight out of the database. - preload `pg_stat_statements` - set `pg_stat_statements.max` and `.track`, which is what makes CNPG manage the extension and create it in every database Requires a postgres restart. Stacked on `benvin/authentik-cnpg-resources`.
benvin changed target branch from benvin/authentik-cnpg-resources to main 2026-09-19 14:35:18 +10:00
Owner

This now conflicts

This now conflicts
unkin-agent added 1 commit 2026-09-19 14:44:19 +10:00
Enable pg_stat_statements on the authentik postgres cluster
ci/woodpecker/pr/vector-test Pipeline was successful
ci/woodpecker/pr/pre-commit Pipeline was successful
ci/woodpecker/pr/kubeconform Pipeline was successful
162eff41d5
The cluster preloads no statement-statistics library, so there is no
per-query cost attribution and slow paths have to be inferred from
application-side metrics.

- preload pg_stat_statements
- set pg_stat_statements.max and .track so CNPG manages the extension
  and creates it in every database

Requires a postgres restart.
unkin-agent force-pushed benvin/authentik-pg-stat-statements from 3de98e6053 to 162eff41d5 2026-09-19 14:44:19 +10:00 Compare
benvin merged commit c83a886e74 into main 2026-09-19 14:48:46 +10:00
benvin deleted branch benvin/authentik-pg-stat-statements 2026-09-19 14:48:46 +10:00
Sign in to join this conversation.
No Reviewers
No Label
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: unkin/argocd-apps#475