Skip to content

Commit

Permalink
crf follow-up
Browse files Browse the repository at this point in the history
  • Loading branch information
fantix committed Nov 26, 2024
1 parent a395e03 commit 2c9abf2
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
10 changes: 5 additions & 5 deletions edb_stat_statements/expected/level_tracking.out.17
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ SELECT edb_stat_statements_reset() IS NOT NULL AS t;
(1 row)

-- DO block - all-level tracking.
SET edb_stat_statements.track = 'nested';
SET edb_stat_statements.track = 'dev-nested';
DELETE FROM stats_track_tab;
DO $$
BEGIN
Expand Down Expand Up @@ -64,7 +64,7 @@ SELECT toplevel, calls, query FROM edb_stat_statements
| | END; $$
f | 1 | SELECT $1::TEXT
t | 1 | SELECT edb_stat_statements_reset() IS NOT NULL AS t
t | 1 | SET edb_stat_statements.track = 'nested'
t | 1 | SET edb_stat_statements.track = 'dev-nested'
(7 rows)

-- Procedure with multiple utility statements.
Expand All @@ -77,7 +77,7 @@ AS $$
$$;
SET edb_stat_statements.track_utility = TRUE;
-- all-level tracking.
SET edb_stat_statements.track = 'nested';
SET edb_stat_statements.track = 'dev-nested';
SELECT edb_stat_statements_reset() IS NOT NULL AS t;
t
---
Expand Down Expand Up @@ -140,7 +140,7 @@ SELECT toplevel, calls, query FROM edb_stat_statements
(2 rows)

-- DO block - all-level tracking without utility.
SET edb_stat_statements.track = 'nested';
SET edb_stat_statements.track = 'dev-nested';
SELECT edb_stat_statements_reset() IS NOT NULL AS t;
t
---
Expand Down Expand Up @@ -244,7 +244,7 @@ SELECT toplevel, calls, rows, query FROM edb_stat_statements ORDER BY query COLL
(5 rows)

-- PL/pgSQL function - all-level tracking.
SET edb_stat_statements.track = 'nested';
SET edb_stat_statements.track = 'dev-nested';
SELECT edb_stat_statements_reset() IS NOT NULL AS t;
t
---
Expand Down
8 changes: 4 additions & 4 deletions edb_stat_statements/expected/level_tracking.out.18
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ SELECT edb_stat_statements_reset() IS NOT NULL AS t;
(1 row)

-- DO block - all-level tracking.
SET edb_stat_statements.track = 'nested';
SET edb_stat_statements.track = 'dev-nested';
DELETE FROM stats_track_tab;
DO $$
BEGIN
Expand Down Expand Up @@ -77,7 +77,7 @@ AS $$
$$;
SET edb_stat_statements.track_utility = TRUE;
-- all-level tracking.
SET edb_stat_statements.track = 'nested';
SET edb_stat_statements.track = 'dev-nested';
SELECT edb_stat_statements_reset() IS NOT NULL AS t;
t
---
Expand Down Expand Up @@ -140,7 +140,7 @@ SELECT toplevel, calls, query FROM edb_stat_statements
(2 rows)

-- DO block - all-level tracking without utility.
SET edb_stat_statements.track = 'nested';
SET edb_stat_statements.track = 'dev-nested';
SELECT edb_stat_statements_reset() IS NOT NULL AS t;
t
---
Expand Down Expand Up @@ -244,7 +244,7 @@ SELECT toplevel, calls, rows, query FROM edb_stat_statements ORDER BY query COLL
(5 rows)

-- PL/pgSQL function - all-level tracking.
SET edb_stat_statements.track = 'nested';
SET edb_stat_statements.track = 'dev-nested';
SELECT edb_stat_statements_reset() IS NOT NULL AS t;
t
---
Expand Down
8 changes: 4 additions & 4 deletions edb_stat_statements/sql/level_tracking.sql
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ SELECT toplevel, calls, query FROM edb_stat_statements
SELECT edb_stat_statements_reset() IS NOT NULL AS t;

-- DO block - all-level tracking.
SET edb_stat_statements.track = 'nested';
SET edb_stat_statements.track = 'dev-nested';
DELETE FROM stats_track_tab;
DO $$
BEGIN
Expand All @@ -43,7 +43,7 @@ AS $$
$$;
SET edb_stat_statements.track_utility = TRUE;
-- all-level tracking.
SET edb_stat_statements.track = 'nested';
SET edb_stat_statements.track = 'dev-nested';
SELECT edb_stat_statements_reset() IS NOT NULL AS t;
CALL proc_with_utility_stmt();
SELECT toplevel, calls, query FROM edb_stat_statements
Expand Down Expand Up @@ -73,7 +73,7 @@ SELECT toplevel, calls, query FROM edb_stat_statements
ORDER BY query COLLATE "C", toplevel;

-- DO block - all-level tracking without utility.
SET edb_stat_statements.track = 'nested';
SET edb_stat_statements.track = 'dev-nested';
SELECT edb_stat_statements_reset() IS NOT NULL AS t;
DELETE FROM stats_track_tab;
DO $$
Expand Down Expand Up @@ -122,7 +122,7 @@ SELECT PLUS_THREE(10);
SELECT toplevel, calls, rows, query FROM edb_stat_statements ORDER BY query COLLATE "C";

-- PL/pgSQL function - all-level tracking.
SET edb_stat_statements.track = 'nested';
SET edb_stat_statements.track = 'dev-nested';
SELECT edb_stat_statements_reset() IS NOT NULL AS t;

-- we drop and recreate the functions to avoid any caching funnies
Expand Down

0 comments on commit 2c9abf2

Please sign in to comment.