Skip to content

Commit 30b887f

Browse files
committed
Fix some answer files
1 parent d12602b commit 30b887f

File tree

9 files changed

+47
-31
lines changed

9 files changed

+47
-31
lines changed

src/test/regress/expected/createdb.out

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ HINT: Inject an infinite 'skip' into the 'fts_probe' fault to disable FTS probi
211211

212212
-- should fail
213213
create database db4 STRATEGY = file_copy;
214-
ERROR: fault triggered, fault name:'end_prepare_two_phase' fault type:'panic' (seg0 127.0.1.1:7002 pid=3772777)
214+
ERROR: fault triggered, fault name:'end_prepare_two_phase' fault type:'panic' (seg0 127.0.1.1:7002 pid=1804307)
215215
select force_mirrors_to_catch_up();
216216
force_mirrors_to_catch_up
217217
---------------------------

src/test/regress/expected/explain.out

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -759,7 +759,6 @@ select jsonb_pretty(
759759
"Settings": { +
760760
"jit": "off", +
761761
"Optimizer": "Postgres query optimizer", +
762-
"optimizer": "off", +
763762
"enable_parallel": "off", +
764763
"parallel_setup_cost": "0", +
765764
"parallel_tuple_cost": "0", +

src/test/regress/expected/freeze_aux_tables.out

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -167,10 +167,10 @@ select segid = -1 as is_master, relname, classify_age(age) from aux_rel_ages('te
167167
group by segid = -1, relname, classify_age(age);
168168
is_master | relname | classify_age
169169
-----------+----------------------------+--------------
170-
t | test_table_heap_with_toast | very young
171-
f | test_table_heap_with_toast | young
172-
f | pg_toast_<oid> | young
173170
t | pg_toast_<oid> | very young
171+
f | test_table_heap_with_toast | zero
172+
f | pg_toast_<oid> | zero
173+
t | test_table_heap_with_toast | very young
174174
(4 rows)
175175

176176
select segid = -1 as is_master, relname, classify_age(age) from aux_rel_ages('test_table_ao')

src/test/regress/expected/gp_tablespace_with_faults.out

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ create or replace function remove_tablespace_location_directory(tablespace_locat
3131
tablespace_symlink
3232
for tablespace_symlink
3333
in sum(tablespace_symlinks, [])
34-
if os.readlink(tablespace_symlink).startswith(tablespace_location_dir)]
34+
if os.path.islink(tablespace_symlink) and os.readlink(tablespace_symlink).startswith(tablespace_location_dir)]
3535

3636
for tablespace_symlink_to_remove in tablespace_symlinks_to_remove:
3737
os.unlink(tablespace_symlink_to_remove);

src/test/regress/expected/gpsd.out

Lines changed: 14 additions & 6 deletions
Large diffs are not rendered by default.

src/test/regress/expected/stats.out

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1428,7 +1428,7 @@ SELECT :io_sum_local_after_evictions > :io_sum_local_before_evictions,
14281428
:io_sum_local_after_extends > :io_sum_local_before_extends;
14291429
?column? | ?column? | ?column? | ?column?
14301430
----------+----------+----------+----------
1431-
f | f | t | t
1431+
t | f | t | t
14321432
(1 row)
14331433

14341434
-- Change the tablespaces so that the temporary table is rewritten to other

src/test/regress/expected/vacuum.out

Lines changed: 20 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -344,36 +344,40 @@ CREATE VIEW vac_option_tab_counts AS
344344
ORDER BY rel;
345345
VACUUM (PROCESS_TOAST TRUE) vac_option_tab;
346346
SELECT * FROM vac_option_tab_counts;
347-
rel | vacuum_count
348-
------+--------------
349-
main | 1
350-
(1 row)
347+
rel | vacuum_count
348+
-------+--------------
349+
main | 1
350+
toast | 1
351+
(2 rows)
351352

352353
VACUUM (PROCESS_TOAST FALSE) vac_option_tab;
353354
SELECT * FROM vac_option_tab_counts;
354-
rel | vacuum_count
355-
------+--------------
356-
main | 2
357-
(1 row)
355+
rel | vacuum_count
356+
-------+--------------
357+
main | 2
358+
toast | 1
359+
(2 rows)
358360

359361
VACUUM (PROCESS_TOAST FALSE, FULL) vac_option_tab; -- error
360362
ERROR: PROCESS_TOAST required with VACUUM FULL
361363
-- PROCESS_MAIN option
362364
-- Only the toast table is processed.
363365
VACUUM (PROCESS_MAIN FALSE) vac_option_tab;
364366
SELECT * FROM vac_option_tab_counts;
365-
rel | vacuum_count
366-
------+--------------
367-
main | 2
368-
(1 row)
367+
rel | vacuum_count
368+
-------+--------------
369+
main | 2
370+
toast | 2
371+
(2 rows)
369372

370373
-- Nothing is processed.
371374
VACUUM (PROCESS_MAIN FALSE, PROCESS_TOAST FALSE) vac_option_tab;
372375
SELECT * FROM vac_option_tab_counts;
373-
rel | vacuum_count
374-
------+--------------
375-
main | 2
376-
(1 row)
376+
rel | vacuum_count
377+
-------+--------------
378+
main | 2
379+
toast | 2
380+
(2 rows)
377381

378382
-- Check if the filenodes nodes have been updated as wanted after FULL.
379383
SELECT relfilenode AS main_filenode FROM pg_class

src/test/regress/sql/gp_tablespace.sql

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,9 @@ FROM pg_tablespace WHERE spcname = 'testspace';
6363
-- Ensure mirrors have applied filesystem changes
6464
SELECT force_mirrors_to_catch_up();
6565

66+
\! ls $PG_ABS_SRCDIR/testtablespace
67+
68+
6669
-- Test moving AO/AOCO tables from one tablespace to another.
6770
CREATE TABLE ao_ts_table (id int4, t text) with (appendonly=true, orientation=row) distributed by (id);
6871
CREATE TABLE aoco_ts_table (id int4, t text) with (appendonly=true, orientation=column) distributed by (id);
@@ -227,8 +230,9 @@ DROP TABLESPACE testspace_existing_version_dir;
227230
-- Ensure mirrors have applied filesystem changes
228231
SELECT force_mirrors_to_catch_up();
229232

230-
-- Test alter tablespace: PG does not seem to test these.
233+
\! ls $PG_ABS_SRCDIR/testtablespace_existing_version_dir/*
231234
235+
-- Test alter tablespace: PG does not seem to test these.
232236
-- test SET & OWNER
233237
ALTER TABLESPACE testspace_otherloc SET (random_page_cost=20.0);
234238
SELECT spcoptions FROM pg_tablespace WHERE spcname = 'testspace_otherloc';
@@ -257,6 +261,7 @@ DROP TABLESPACE testspace_otherloc;
257261
258262
CREATE TABLESPACE testspace_dir_empty LOCATION :'testtablespace';
259263
CREATE TABLE t_dir_empty(a int);
264+
\! rm -rf $PG_ABS_SRCDIR/testtablespace
260265
DROP TABLE IF EXISTS t_dir_empty;
261266
DROP TABLESPACE testspace_dir_empty;
262267

src/test/regress/sql/gp_tablespace_with_faults.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ create or replace function remove_tablespace_location_directory(tablespace_locat
3232
tablespace_symlink
3333
for tablespace_symlink
3434
in sum(tablespace_symlinks, [])
35-
if os.readlink(tablespace_symlink).startswith(tablespace_location_dir)]
35+
if os.path.islink(tablespace_symlink) and os.readlink(tablespace_symlink).startswith(tablespace_location_dir)]
3636

3737
for tablespace_symlink_to_remove in tablespace_symlinks_to_remove:
3838
os.unlink(tablespace_symlink_to_remove);

0 commit comments

Comments
 (0)