Commit 9aa6b97
committed
fix(s1,s2): handle PG17 pg_stat_statements column renames
In pg_stat_statements 1.11 (PG17), blk_read_time and blk_write_time
were renamed to shared_blk_read_time and shared_blk_write_time.
s1: use \if :postgres_dba_pgvers_17plus to select the right columns
s2: alias the new column names in the source CTE so all downstream
references work without changes
Tested with shared_preload_libraries=pg_stat_statements on PG17.
All 30 queries now pass.1 parent a554674 commit 9aa6b97
File tree
2 files changed
+9
-0
lines changed- sql
2 files changed
+9
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
56 | 60 | | |
57 | 61 | | |
| 62 | + | |
58 | 63 | | |
59 | 64 | | |
60 | 65 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
6 | 9 | | |
| 10 | + | |
7 | 11 | | |
8 | 12 | | |
9 | 13 | | |
| |||
0 commit comments