Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/test/regress/expected/stats.out
Original file line number Diff line number Diff line change
Expand Up @@ -845,6 +845,7 @@ SELECT (n_tup_ins + n_tup_upd) > 0 AS has_data FROM gp_stat_all_tables_summary
-- Test that sessions is incremented when a new session is started in pg_stat_database
SELECT sessions AS db_stat_sessions FROM pg_stat_database WHERE datname = (SELECT current_database()) \gset
\c
SET enable_parallel TO off;
SELECT gp_stat_force_next_flush();
gp_stat_force_next_flush
--------------------------
Expand Down Expand Up @@ -1455,6 +1456,7 @@ DROP TABLE test_io_shared;
-- CBDB: CBDB use share buffer not local buffer.So extends with object = 'relation' not 'temp relation'.
-- read/write will not count directly, result is false
\c
SET enable_parallel TO off;
SET temp_buffers TO 100;
CREATE TEMPORARY TABLE test_io_local(a int, b TEXT);
SELECT sum(extends) AS extends, sum(evictions) AS evictions, sum(writes) AS writes
Expand Down Expand Up @@ -1644,6 +1646,7 @@ UPDATE brin_hot SET val = -3 WHERE id = 42;
-- timeout to elapse, let's just start a new session. The old one will
-- then send its stats before dying.
\c -
SET enable_parallel TO off;
SELECT wait_for_hot_stats();
wait_for_hot_stats
--------------------
Expand Down
3 changes: 3 additions & 0 deletions src/test/regress/sql/stats.sql
Original file line number Diff line number Diff line change
Expand Up @@ -426,6 +426,7 @@ SELECT (n_tup_ins + n_tup_upd) > 0 AS has_data FROM gp_stat_all_tables_summary
-- Test that sessions is incremented when a new session is started in pg_stat_database
SELECT sessions AS db_stat_sessions FROM pg_stat_database WHERE datname = (SELECT current_database()) \gset
\c
SET enable_parallel TO off;
SELECT gp_stat_force_next_flush();
SELECT sessions > :db_stat_sessions FROM pg_stat_database WHERE datname = (SELECT current_database());

Expand Down Expand Up @@ -694,6 +695,7 @@ DROP TABLE test_io_shared;
-- CBDB: CBDB use share buffer not local buffer.So extends with object = 'relation' not 'temp relation'.
-- read/write will not count directly, result is false
\c
SET enable_parallel TO off;
SET temp_buffers TO 100;
CREATE TEMPORARY TABLE test_io_local(a int, b TEXT);
SELECT sum(extends) AS extends, sum(evictions) AS evictions, sum(writes) AS writes
Expand Down Expand Up @@ -826,6 +828,7 @@ UPDATE brin_hot SET val = -3 WHERE id = 42;
-- timeout to elapse, let's just start a new session. The old one will
-- then send its stats before dying.
\c -
SET enable_parallel TO off;

SELECT wait_for_hot_stats();
select n_tup_upd from gp_stat_user_tables_summary where relid = ('brin_hot'::regclass::oid);
Expand Down