Skip to content

Commit

Permalink
Modify partition tests
Browse files Browse the repository at this point in the history
Reflect the fact that USING orioledb clause for partitioned (parent) table
is prohibited in PG16 but allowed since PG17
  • Loading branch information
pashkinelfe committed Nov 14, 2024
1 parent 78ddd88 commit af47ac2
Show file tree
Hide file tree
Showing 3 changed files with 755 additions and 6 deletions.
8 changes: 6 additions & 2 deletions expected/partition.out
Original file line number Diff line number Diff line change
Expand Up @@ -596,11 +596,15 @@ SELECT tableoid::regclass, * FROM o_test_partition_multiple_moves;
o_test_partition_multiple_moves_child2 | 2 | 1 | 60
(1 row)

SET default_table_access_method to orioledb;
-- Should succeed in PG17 but fail in PG16
CREATE TABLE o_test_partition_pkey_update_move (
val_1 INT PRIMARY KEY
) PARTITION BY LIST (val_1) USING orioledb;
ERROR: specifying a table access method is not supported on a partitioned table
-- Create it using default AM for PG16
CREATE TABLE IF NOT EXISTS o_test_partition_pkey_update_move (
val_1 INT PRIMARY KEY
) PARTITION BY LIST (val_1);
RESET default_table_access_method;
CREATE TABLE o_test_partition_pkey_update_move_child1
PARTITION OF o_test_partition_pkey_update_move FOR VALUES IN (1);
CREATE TABLE o_test_partition_pkey_update_move_child2 (
Expand Down
Loading

0 comments on commit af47ac2

Please sign in to comment.