Commit e325dc2
committed
fix: apply WHERE filter to postgres sink, remove LIMIT from both sinks
The 100K queryids came from the postgres sink path having no filter
at all — not from the WHERE filter being too weak. LIMIT 100 was the
wrong fix; the filter itself is sufficient when applied everywhere.
- postgres sink (pgss_queryid_queries): add the same WHERE filter
(calls >= 5 or total_exec_time >= 1000) instead of LIMIT 100
- prometheus sink (pg_stat_statements): remove LIMIT 100, keep
the WHERE filter only
https://claude.ai/code/session_01SzJxzZNQjDQphaHyaX3RU71 parent b858689 commit e325dc2
2 files changed
Lines changed: 1 addition & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
14 | 15 | | |
15 | | - | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1037 | 1037 | | |
1038 | 1038 | | |
1039 | 1039 | | |
1040 | | - | |
1041 | 1040 | | |
1042 | 1041 | | |
1043 | 1042 | | |
| |||
1086 | 1085 | | |
1087 | 1086 | | |
1088 | 1087 | | |
1089 | | - | |
1090 | 1088 | | |
1091 | 1089 | | |
1092 | 1090 | | |
| |||
0 commit comments