Skip to content

Commit

Permalink
Fix answer files
Browse files Browse the repository at this point in the history
  • Loading branch information
gfphoenix78 committed Nov 5, 2024
1 parent 2180676 commit 10badcc
Show file tree
Hide file tree
Showing 7 changed files with 273 additions and 164 deletions.
2 changes: 1 addition & 1 deletion src/test/regress/expected/alter_table_ao.out
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,7 @@ SELECT am.amname FROM pg_class c LEFT JOIN pg_am am ON (c.relam = am.oid)
WHERE c.relname = 'ao_multi_level_part_table_1_prt_yearyyyy_2_prt_def';
amname
--------
heap
ao_row
(1 row)

alter table ao_multi_level_part_table drop partition yearYYYY;
Expand Down
16 changes: 8 additions & 8 deletions src/test/regress/expected/alter_table_aocs.out
Original file line number Diff line number Diff line change
Expand Up @@ -570,11 +570,11 @@ alter table alter_aocs_part_table split default partition start(6) inclusive end
ERROR: partition "alter_aocs_part_table_1_prt_11" would overlap partition "alter_aocs_part_table_1_prt_1"
alter table alter_aocs_part_table split default partition start(7) inclusive end(8) exclusive;
\d+ alter_aocs_part_table
Partitioned table "aocs_addcol.alter_aocs_part_table"
Column | Type | Collation | Nullable | Default | Storage | Stats target | Description
--------+---------+-----------+----------+---------+---------+--------------+-------------
a | integer | | | | plain | |
b | integer | | | | plain | |
Partitioned table "aocs_addcol.alter_aocs_part_table"
Column | Type | Collation | Nullable | Default | Storage | Stats target | Compression Type | Compression Level | Block Size | Description
--------+---------+-----------+----------+---------+---------+--------------+------------------+-------------------+------------+-------------
a | integer | | | | plain | | none | 0 | 32768 |
b | integer | | | | plain | | none | 0 | 32768 |
Partition key: RANGE (b)
Partitions: alter_aocs_part_table_1_prt_1 FOR VALUES FROM (6) TO (7),
alter_aocs_part_table_1_prt_11 FOR VALUES FROM (7) TO (8),
Expand Down Expand Up @@ -634,9 +634,9 @@ alter table aocs_multi_level_part_table add partition part3 start(date '2010-01-
alter table aocs_multi_level_part_table add default partition yearYYYY (default subpartition def);
SELECT am.amname FROM pg_class c LEFT JOIN pg_am am ON (c.relam = am.oid)
WHERE c.relname = 'aocs_multi_level_part_table_1_prt_yearyyyy_2_prt_def';
amname
--------
heap
amname
-----------
ao_column
(1 row)

alter table aocs_multi_level_part_table drop partition yearYYYY;
Expand Down
24 changes: 12 additions & 12 deletions src/test/regress/expected/alter_table_aocs2.out
Original file line number Diff line number Diff line change
Expand Up @@ -814,14 +814,14 @@ SELECT * FROM rewrite_optimization_aoco_parent;
(10 rows)

:chk_co_opt_qry;
segno | rel | amname | aoco_add_col_optimized
-------+------------------------------------------+--------+--------------------------------
-1 | rewrite_optimization_aoco_parent | | ADD COLUMN optimized for table
-1 | rewrite_optimization_aoco_parent_1_prt_1 | ao_row | full table rewritten
-1 | rewrite_optimization_aoco_parent_1_prt_2 | heap | ADD COLUMN optimized for table
0 | rewrite_optimization_aoco_parent | | ADD COLUMN optimized for table
0 | rewrite_optimization_aoco_parent_1_prt_1 | ao_row | full table rewritten
0 | rewrite_optimization_aoco_parent_1_prt_2 | heap | ADD COLUMN optimized for table
segno | rel | amname | aoco_add_col_optimized
-------+------------------------------------------+-----------+--------------------------------
-1 | rewrite_optimization_aoco_parent | ao_column | ADD COLUMN optimized for table
-1 | rewrite_optimization_aoco_parent_1_prt_1 | ao_row | full table rewritten
-1 | rewrite_optimization_aoco_parent_1_prt_2 | heap | ADD COLUMN optimized for table
0 | rewrite_optimization_aoco_parent | ao_column | ADD COLUMN optimized for table
0 | rewrite_optimization_aoco_parent_1_prt_1 | ao_row | full table rewritten
0 | rewrite_optimization_aoco_parent_1_prt_2 | heap | ADD COLUMN optimized for table
(6 rows)

-- ADD COLUMN for AOCO partition children should not trigger full table rewrite
Expand Down Expand Up @@ -932,10 +932,10 @@ SELECT * FROM subpartition_aoco_leaf;
segno | rel | amname | aoco_add_col_optimized
-------+------------------------------------------------------+-----------+--------------------------------
-1 | subpartition_aoco_leaf | | ADD COLUMN optimized for table
-1 | subpartition_aoco_leaf_1_prt_intermediate | | ADD COLUMN optimized for table
-1 | subpartition_aoco_leaf_1_prt_intermediate | heap | ADD COLUMN optimized for table
-1 | subpartition_aoco_leaf_1_prt_intermediate_2_prt_leaf | ao_column | ADD COLUMN optimized for table
0 | subpartition_aoco_leaf | | ADD COLUMN optimized for table
0 | subpartition_aoco_leaf_1_prt_intermediate | | ADD COLUMN optimized for table
0 | subpartition_aoco_leaf_1_prt_intermediate | heap | ADD COLUMN optimized for table
0 | subpartition_aoco_leaf_1_prt_intermediate_2_prt_leaf | ao_column | ADD COLUMN optimized for table
(6 rows)

Expand All @@ -962,10 +962,10 @@ SELECT * FROM subpartition_aoco_leaf;
segno | rel | amname | aoco_add_col_optimized
-------+------------------------------------------------------+-----------+--------------------------------
-1 | subpartition_aoco_leaf | | ADD COLUMN optimized for table
-1 | subpartition_aoco_leaf_1_prt_intermediate | | ADD COLUMN optimized for table
-1 | subpartition_aoco_leaf_1_prt_intermediate | heap | ADD COLUMN optimized for table
-1 | subpartition_aoco_leaf_1_prt_intermediate_2_prt_leaf | ao_column | full table rewritten
0 | subpartition_aoco_leaf | | ADD COLUMN optimized for table
0 | subpartition_aoco_leaf_1_prt_intermediate | | ADD COLUMN optimized for table
0 | subpartition_aoco_leaf_1_prt_intermediate | heap | ADD COLUMN optimized for table
0 | subpartition_aoco_leaf_1_prt_intermediate_2_prt_leaf | ao_column | full table rewritten
(6 rows)

Loading

0 comments on commit 10badcc

Please sign in to comment.