This is an automated email from the ASF dual-hosted git repository.
oppenheimer01 pushed a commit to branch cbdb-postgres-merge
in repository https://gitbox.apache.org/repos/asf/cloudberry.git
The following commit(s) were added to refs/heads/cbdb-postgres-merge by this
push:
new 0f6aea8fd50 fix test stats
0f6aea8fd50 is described below
commit 0f6aea8fd50974f9b1d79ddd5b24cee51dc094f3
Author: liushengsong <[email protected]>
AuthorDate: Thu May 7 10:38:10 2026 +0800
fix test stats
---
src/test/regress/expected/stats.out | 3 +++
src/test/regress/sql/stats.sql | 3 +++
2 files changed, 6 insertions(+)
diff --git a/src/test/regress/expected/stats.out
b/src/test/regress/expected/stats.out
index a6eb01f0a53..65ff6f04a54 100644
--- a/src/test/regress/expected/stats.out
+++ b/src/test/regress/expected/stats.out
@@ -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
--------------------------
@@ -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
@@ -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
--------------------
diff --git a/src/test/regress/sql/stats.sql b/src/test/regress/sql/stats.sql
index 240472cf534..344632114ac 100644
--- a/src/test/regress/sql/stats.sql
+++ b/src/test/regress/sql/stats.sql
@@ -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());
@@ -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
@@ -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);
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]