Skip to content

Commit

Permalink
Simplify test_activetbale_limit
Browse files Browse the repository at this point in the history
  • Loading branch information
silent-observer committed Nov 22, 2024
1 parent 61779eb commit 9426949
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions tests/regress/expected/test_activetable_limit.out
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ NOTICE: CREATE TABLE will create partition "t1_1_prt_8" for table "t1"
NOTICE: CREATE TABLE will create partition "t1_1_prt_9" for table "t1"
NOTICE: CREATE TABLE will create partition "t1_1_prt_10" for table "t1"
WARNING: [diskquota] the number of active tables reached the limit, please increase the GUC value for diskquota.max_active_tables.
SELECT count(*) FROM gp_toolkit.__gp_log_segment_ext JOIN pg_stat_activity a ON logsession = 'con'||sess_id WHERE pid = pg_backend_pid() AND logmessage LIKE '%the number of active tables reached the limit%';
SELECT count(*) FROM gp_toolkit.__gp_log_segment_ext JOIN pg_stat_activity ON logsession = 'con'||sess_id WHERE pid = pg_backend_pid() AND logmessage LIKE '%the number of active tables reached the limit%';
count
-------
3
Expand All @@ -65,7 +65,7 @@ SELECT count(*) FROM s.t1;
-- altered reloid cache overflow check. expected warning.
VACUUM FULL;
WARNING: [diskquota] the number of altered reloid cache entries reached the limit, please increase the GUC value for diskquota.max_active_tables.
SELECT count(*) FROM gp_toolkit.__gp_log_segment_ext JOIN pg_stat_activity a ON logsession = 'con'||sess_id WHERE pid = pg_backend_pid() AND logmessage LIKE '%the number of altered reloid cache entries reached the limit%';
SELECT count(*) FROM gp_toolkit.__gp_log_segment_ext JOIN pg_stat_activity ON logsession = 'con'||sess_id WHERE pid = pg_backend_pid() AND logmessage LIKE '%the number of altered reloid cache entries reached the limit%';
count
-------
3
Expand Down
4 changes: 2 additions & 2 deletions tests/regress/sql/test_activetable_limit.sql
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ SELECT diskquota.wait_for_worker_new_epoch();
CREATE TABLE s.t1 (a int, b int) DISTRIBUTED BY (a)
PARTITION BY RANGE (b) ( START (0) END (10) EVERY (1) );

SELECT count(*) FROM gp_toolkit.__gp_log_segment_ext JOIN pg_stat_activity a ON logsession = 'con'||sess_id WHERE pid = pg_backend_pid() AND logmessage LIKE '%the number of active tables reached the limit%';
SELECT count(*) FROM gp_toolkit.__gp_log_segment_ext JOIN pg_stat_activity ON logsession = 'con'||sess_id WHERE pid = pg_backend_pid() AND logmessage LIKE '%the number of active tables reached the limit%';

CREATE TABLE s.t2(i int) DISTRIBUTED BY (i);
INSERT INTO s.t2 SELECT generate_series(1, 100000);
Expand All @@ -43,7 +43,7 @@ SELECT count(*) FROM s.t1;
-- altered reloid cache overflow check. expected warning.
VACUUM FULL;

SELECT count(*) FROM gp_toolkit.__gp_log_segment_ext JOIN pg_stat_activity a ON logsession = 'con'||sess_id WHERE pid = pg_backend_pid() AND logmessage LIKE '%the number of altered reloid cache entries reached the limit%';
SELECT count(*) FROM gp_toolkit.__gp_log_segment_ext JOIN pg_stat_activity ON logsession = 'con'||sess_id WHERE pid = pg_backend_pid() AND logmessage LIKE '%the number of altered reloid cache entries reached the limit%';

DROP EXTENSION diskquota;

Expand Down

0 comments on commit 9426949

Please sign in to comment.