Commit 4f06560
committed
fix: restore WHERE filter on pg_stat_statements alongside LIMIT 50
Both layers of cardinality control:
- CTE: ORDER BY total_exec_time DESC LIMIT 50 (hard cap)
- Outer: WHERE calls >= 5 OR exec_time_total >= 1000 (noise filter)
Root cause found: the deployed VM config was missing the WHERE filter
entirely, allowing all queryids through (~30K+ series).
https://claude.ai/code/session_01SzJxzZNQjDQphaHyaX3RU71 parent 099774a commit 4f06560
1 file changed
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1037 | 1037 | | |
1038 | 1038 | | |
1039 | 1039 | | |
| 1040 | + | |
1040 | 1041 | | |
1041 | 1042 | | |
1042 | 1043 | | |
| |||
1085 | 1086 | | |
1086 | 1087 | | |
1087 | 1088 | | |
| 1089 | + | |
1088 | 1090 | | |
1089 | 1091 | | |
1090 | 1092 | | |
| |||
0 commit comments