Skip to content

Commit 8a4fa20

Browse files
committed
Fix some answer file for pax
1 parent 33e7adb commit 8a4fa20

13 files changed

Lines changed: 44 additions & 1245 deletions

contrib/pax_storage/src/test/regress/expected/aggregates.out

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3567,15 +3567,15 @@ drop table agg_hash_4;
35673567
explain analyze select count(*) from pg_class, (select count(*) > 0 from (select count(*) from pg_class where relnatts > 8) x) y;
35683568
QUERY PLAN
35693569
-------------------------------------------------------------------------------------------------------------------------
3570-
Aggregate (cost=10000000064.28..10000000064.30 rows=1 width=8) (actual time=0.330..0.331 rows=1 loops=1)
3571-
-> Nested Loop (cost=10000000000.02..10000000059.48 rows=1922 width=0) (actual time=0.021..0.264 rows=1057 loops=1)
3572-
-> Aggregate (cost=0.02..0.03 rows=1 width=1) (actual time=0.006..0.007 rows=1 loops=1)
3573-
-> Result (cost=0.00..0.01 rows=1 width=8) (actual time=0.004..0.004 rows=1 loops=1)
3574-
-> Seq Scan on pg_class (cost=0.00..40.22 rows=1922 width=0) (actual time=0.012..0.160 rows=1057 loops=1)
3575-
Planning Time: 0.671 ms
3570+
Aggregate (cost=10000000055.82..10000000055.83 rows=1 width=8) (actual time=0.394..0.395 rows=1 loops=1)
3571+
-> Nested Loop (cost=10000000000.02..10000000052.40 rows=1368 width=0) (actual time=0.017..0.310 rows=1378 loops=1)
3572+
-> Aggregate (cost=0.02..0.03 rows=1 width=1) (actual time=0.005..0.006 rows=1 loops=1)
3573+
-> Result (cost=0.00..0.01 rows=1 width=8) (actual time=0.002..0.003 rows=1 loops=1)
3574+
-> Seq Scan on pg_class (cost=0.00..38.68 rows=1368 width=0) (actual time=0.009..0.170 rows=1378 loops=1)
3575+
Planning Time: 0.738 ms
35763576
(slice0) Executor memory: 29K bytes.
35773577
Memory used: 128000kB
35783578
Optimizer: Postgres query optimizer
3579-
Execution Time: 0.397 ms
3579+
Execution Time: 0.446 ms
35803580
(10 rows)
35813581

contrib/pax_storage/src/test/regress/expected/autostats.out

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
-- end_matchignore
1212
set gp_autostats_mode=on_change;
1313
set gp_autostats_on_change_threshold=9;
14+
set pax_enable_debug = false;
1415
set log_autostats=on;
1516
set client_min_messages=log;
1617
reset optimizer_trace_fallback;
@@ -87,8 +88,8 @@ LOG: statement: select relname, reltuples from pg_class where relname='autostat
8788
-- Try to disable allow_nonowner GUC as ordinary user, should fail
8889
set gp_autostats_allow_nonowner=off;
8990
LOG: statement: set gp_autostats_allow_nonowner=off;
90-
ERROR: permission denied to set parameter "gp_autostats_allow_nonowner"
9191
LOG: An exception was encountered during the execution of statement: set gp_autostats_allow_nonowner=off;
92+
ERROR: permission denied to set parameter "gp_autostats_allow_nonowner"
9293
show gp_autostats_allow_nonowner;
9394
LOG: statement: show gp_autostats_allow_nonowner;
9495
gp_autostats_allow_nonowner

contrib/pax_storage/src/test/regress/expected/createdb.out

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,6 @@ HINT: Inject an infinite 'skip' into the 'fts_probe' fault to disable FTS probi
212212
-- should fail
213213
create database db4 STRATEGY = file_copy;
214214
ERROR: fault triggered, fault name:'end_prepare_two_phase' fault type:'panic'
215-
NOTICE: Releasing segworker groups to retry broadcast.
216215
select force_mirrors_to_catch_up();
217216
force_mirrors_to_catch_up
218217
---------------------------

contrib/pax_storage/src/test/regress/expected/index_including.out

Lines changed: 8 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -214,26 +214,14 @@ ERROR: null value in column "c2" of relation "tbl" violates not-null constraint
214214
DETAIL: Failing row contains (1, null, 3, (4,4),(4,4)).
215215
INSERT INTO tbl SELECT x, 2*x, NULL, NULL FROM generate_series(1,10) AS x;
216216
DROP TABLE tbl;
217-
CREATE TABLE tbl (c1 int,c2 int, c3 int, c4 box,
218-
EXCLUDE USING btree (c1 WITH =) INCLUDE(c3,c4));
219-
SELECT indexrelid::regclass, indnatts, indnkeyatts, indisunique, indisprimary, indkey, indclass FROM pg_index WHERE indrelid = 'tbl'::regclass::oid;
220-
indexrelid | indnatts | indnkeyatts | indisunique | indisprimary | indkey | indclass
221-
-------------------+----------+-------------+-------------+--------------+--------+----------
222-
tbl_c1_c3_c4_excl | 3 | 1 | f | f | 1 3 4 | 1978
223-
(1 row)
224-
225-
SELECT pg_get_constraintdef(oid), conname, conkey FROM pg_constraint WHERE conrelid = 'tbl'::regclass::oid;
226-
pg_get_constraintdef | conname | conkey
227-
--------------------------------------------------+-------------------+--------
228-
EXCLUDE USING btree (c1 WITH =) INCLUDE (c3, c4) | tbl_c1_c3_c4_excl | {1}
229-
(1 row)
230-
231-
-- ensure that constraint works
232-
INSERT INTO tbl SELECT 1, 2, 3*x, box('4,4,4,4') FROM generate_series(1,10) AS x;
233-
ERROR: conflicting key value violates exclusion constraint "tbl_c1_c3_c4_excl"
234-
DETAIL: Key (c1)=(1) conflicts with existing key (c1)=(1).
235-
INSERT INTO tbl SELECT x, 2*x, NULL, NULL FROM generate_series(1,10) AS x;
236-
DROP TABLE tbl;
217+
-- Pax not support read in writing.
218+
-- CREATE TABLE tbl (c1 int,c2 int, c3 int, c4 box,
219+
-- EXCLUDE USING btree (c1 WITH =) INCLUDE(c3,c4));
220+
-- SELECT indexrelid::regclass, indnatts, indnkeyatts, indisunique, indisprimary, indkey, indclass FROM pg_index WHERE indrelid = 'tbl'::regclass::oid;
221+
-- SELECT pg_get_constraintdef(oid), conname, conkey FROM pg_constraint WHERE conrelid = 'tbl'::regclass::oid;
222+
-- INSERT INTO tbl SELECT 1, 2, 3*x, box('4,4,4,4') FROM generate_series(1,10) AS x;
223+
-- INSERT INTO tbl SELECT x, 2*x, NULL, NULL FROM generate_series(1,10) AS x;
224+
-- DROP TABLE tbl;
237225
/*
238226
* 3.0 Test ALTER TABLE DROP COLUMN.
239227
* Any column deletion leads to index deletion.

0 commit comments

Comments
 (0)