Skip to content

Commit 92f9f26

Browse files
authored
fix: use schema qualified references (#4495)
1 parent 2bb6c35 commit 92f9f26

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

internal/inspect/calls/calls.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@ SELECT
2121
)
2222
)
2323
)::text AS sync_io_time
24-
FROM pg_stat_statements s
24+
FROM extensions.pg_stat_statements s
2525
ORDER BY calls DESC
2626
LIMIT 10

internal/inspect/db_stats/db_stats.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ SELECT
5252
COALESCE((SELECT size FROM total_objects WHERE relkind = 'i'), '0 bytes') AS total_index_size,
5353
COALESCE((SELECT size FROM total_objects WHERE relkind = 'r'), '0 bytes') AS total_table_size,
5454
COALESCE((SELECT size FROM total_objects WHERE relkind = 't'), '0 bytes') AS total_toast_size,
55-
COALESCE((SELECT (now() - stats_reset)::text FROM pg_stat_statements_info), 'N/A') AS time_since_stats_reset,
55+
COALESCE((SELECT (now() - stats_reset)::text FROM extensions.pg_stat_statements_info), 'N/A') AS time_since_stats_reset,
5656
(SELECT COALESCE(ratio::text, 'N/A') FROM cache_hit WHERE relkind = 'i') AS index_hit_rate,
5757
(SELECT COALESCE(ratio::text, 'N/A') FROM cache_hit WHERE relkind = 't') AS table_hit_rate,
5858
COALESCE((SELECT pg_size_pretty(SUM(size)) FROM pg_ls_waldir()), '0 bytes') AS wal_size

internal/inspect/outliers/outliers.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@ SELECT
2121
)
2222
)::text AS sync_io_time,
2323
query
24-
FROM pg_stat_statements s WHERE userid = (SELECT usesysid FROM pg_user WHERE usename = current_user LIMIT 1)
24+
FROM extensions.pg_stat_statements s WHERE userid = (SELECT usesysid FROM pg_user WHERE usename = current_user LIMIT 1)
2525
ORDER BY total_exec_time DESC
2626
LIMIT 10

0 commit comments

Comments
 (0)