File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -45,8 +45,8 @@ set role=autostats_nonowner;
4545LOG: statement: set role=autostats_nonowner;
4646insert into autostats_test select generate_series(1, 10);
4747LOG: statement: insert into autostats_test select generate_series(1, 10);
48- LOG: An exception was encountered during the execution of statement: insert into autostats_test select generate_series(1, 10);
4948ERROR: permission denied for table autostats_test
49+ LOG: An exception was encountered during the execution of statement: insert into autostats_test select generate_series(1, 10);
5050select relname, reltuples from pg_class where relname='autostats_test';
5151LOG: statement: select relname, reltuples from pg_class where relname='autostats_test';
5252 relname | reltuples
Original file line number Diff line number Diff line change @@ -759,6 +759,7 @@ select jsonb_pretty(
759759 "Settings": { +
760760 "jit": "off", +
761761 "Optimizer": "Postgres query optimizer", +
762+ "optimizer": "off", +
762763 "enable_parallel": "off", +
763764 "parallel_setup_cost": "0", +
764765 "parallel_tuple_cost": "0", +
Load Diff Large diffs are not rendered by default.
Original file line number Diff line number Diff line change @@ -416,28 +416,28 @@ SELECT force_mirrors_to_catch_up();
416416(1 row)
417417
418418\! ls $PG_ABS_SRCDIR/testtablespace_existing_version_dir/*
419- /home/gpadmin/cloudberry/src/test/regress /testtablespace_existing_version_dir/1:
419+ /ABSPATH /testtablespace_existing_version_dir/1:
420420GPDB_99_399999991
421421
422- /home/gpadmin/cloudberry/src/test/regress /testtablespace_existing_version_dir/2:
422+ /ABSPATH /testtablespace_existing_version_dir/2:
423423GPDB_99_399999991
424424
425- /home/gpadmin/cloudberry/src/test/regress /testtablespace_existing_version_dir/3:
425+ /ABSPATH /testtablespace_existing_version_dir/3:
426426GPDB_99_399999991
427427
428- /home/gpadmin/cloudberry/src/test/regress /testtablespace_existing_version_dir/4:
428+ /ABSPATH /testtablespace_existing_version_dir/4:
429429GPDB_99_399999991
430430
431- /home/gpadmin/cloudberry/src/test/regress /testtablespace_existing_version_dir/5:
431+ /ABSPATH /testtablespace_existing_version_dir/5:
432432GPDB_99_399999991
433433
434- /home/gpadmin/cloudberry/src/test/regress /testtablespace_existing_version_dir/6:
434+ /ABSPATH /testtablespace_existing_version_dir/6:
435435GPDB_99_399999991
436436
437- /home/gpadmin/cloudberry/src/test/regress /testtablespace_existing_version_dir/7:
437+ /ABSPATH /testtablespace_existing_version_dir/7:
438438GPDB_99_399999991
439439
440- /home/gpadmin/cloudberry/src/test/regress /testtablespace_existing_version_dir/8:
440+ /ABSPATH /testtablespace_existing_version_dir/8:
441441GPDB_99_399999991
442442-- Test alter tablespace: PG does not seem to test these.
443443-- test SET & OWNER
Original file line number Diff line number Diff line change 55SELECT COUNT(*) FROM pg_stat_activity;
66 count
77-------
8- 10
8+ 9
99(1 row)
1010
1111-- Display pg_authid, pg_roles, pg_profile and pg_password_history catalog
Original file line number Diff line number Diff line change @@ -413,7 +413,7 @@ INSERT INTO drop_stats_test_xact DEFAULT VALUES;
413413SELECT n_tup_ins FROM gp_stat_xact_all_tables_summary where relid = :drop_stats_test_xact_oid;
414414 n_tup_ins
415415-----------
416- 1
416+ 2
417417(1 row)
418418
419419DROP TABLE drop_stats_test_xact;
@@ -459,7 +459,7 @@ INSERT INTO drop_stats_test_xact DEFAULT VALUES;
459459SELECT n_tup_ins FROM gp_stat_xact_all_tables_summary where relid = :drop_stats_test_xact_oid;
460460 n_tup_ins
461461-----------
462- 1
462+ 2
463463(1 row)
464464
465465DROP TABLE drop_stats_test_xact;
@@ -499,7 +499,7 @@ INSERT INTO drop_stats_test_subxact DEFAULT VALUES;
499499SELECT n_tup_ins FROM gp_stat_xact_all_tables_summary where relid = :drop_stats_test_subxact_oid;
500500 n_tup_ins
501501-----------
502- 2
502+ 4
503503(1 row)
504504
505505SAVEPOINT sp2;
@@ -508,7 +508,7 @@ ROLLBACK TO SAVEPOINT sp2;
508508SELECT n_tup_ins FROM gp_stat_xact_all_tables_summary where relid = :drop_stats_test_subxact_oid;
509509 n_tup_ins
510510-----------
511- 2
511+ 4
512512(1 row)
513513
514514COMMIT;
Original file line number Diff line number Diff line change @@ -70,11 +70,11 @@ select reltuples from pg_class where relname = 'ao2_@amname@';
7070select count(*) from ao2_@amname@;
7171delete from ao2_@amname@ where i < 27;
7272-- make sure the pgstat msg sends out at least PGSTAT_STAT_INTERVAL msec since last one
73- select pg_sleep(0.6 );
73+ SELECT gp_stat_force_next_flush( );
7474analyze ao2_@amname@;
7575select count(*) from ao2_@amname@;
7676-- make sure the pgstat msg sends out at least PGSTAT_STAT_INTERVAL msec since last one
77- select pg_sleep(0.6 );
77+ SELECT gp_stat_force_next_flush( );
7878select pg_stat_get_live_tuples(c.oid) as livetuples, pg_stat_get_dead_tuples(c.oid) as deadtuples
7979from pg_class c
8080where relname = 'ao2_@amname@';
Original file line number Diff line number Diff line change @@ -147,9 +147,9 @@ select count(*) from ao2_@amname@;
147147
148148delete from ao2_@amname@ where i < 27;
149149-- make sure the pgstat msg sends out at least PGSTAT_STAT_INTERVAL msec since last one
150- select pg_sleep(0.6 );
151- pg_sleep
152- ----------
150+ SELECT gp_stat_force_next_flush( );
151+ gp_stat_force_next_flush
152+ --------------------------
153153
154154(1 row)
155155
@@ -161,9 +161,9 @@ select count(*) from ao2_@amname@;
161161(1 row)
162162
163163-- make sure the pgstat msg sends out at least PGSTAT_STAT_INTERVAL msec since last one
164- select pg_sleep(0.6 );
165- pg_sleep
166- ----------
164+ SELECT gp_stat_force_next_flush( );
165+ gp_stat_force_next_flush
166+ --------------------------
167167
168168(1 row)
169169
Original file line number Diff line number Diff line change 2323-- m/DETAIL: Found \d+ URLs and \d+ primary segments./
2424-- s/Found.+//
2525--
26+ -- # normalize absolute source paths across environments
27+ -- m|/.+/src/test/regress/|
28+ -- s|/.+/src/test/regress/|/ABSPATH/src/test/regress/|
29+ --
30+ -- # normalize file:// URIs with hostname and absolute path
31+ -- m|file://\w+/.+/src/test/regress/|
32+ -- s|file://\w+/.+/src/test/regress/|file://HOSTNAME/ABSPATH/src/test/regress/|
33+ --
2634-- end_matchsubs
2735\getenv abs_srcdir PG_ABS_SRCDIR
2836\getenv hostname PG_HOSTNAME
Original file line number Diff line number Diff line change 1+ -- start_matchsubs
2+ -- m|/.*/testtablespace_existing_version_dir/|
3+ -- s|/.*/testtablespace_existing_version_dir/|/ABSPATH/testtablespace_existing_version_dir/|
4+ -- end_matchsubs
15-- start_matchignore
26-- m/WARNING: tablespace symlink path is too long for TAR/
37-- m/DETAIL: The symlinked path \".*\" will be truncated to 100 characters when sending a TAR to the utilities \(e.g. pg_basebackup\)/
You can’t perform that action at this time.
0 commit comments