diff options
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/regress/expected/insert.out | 4 | ||||
| -rw-r--r-- | src/test/regress/sql/insert.sql | 4 | 
2 files changed, 8 insertions, 0 deletions
diff --git a/src/test/regress/expected/insert.out b/src/test/regress/expected/insert.out index b7b37dbc399..dcbaad8e2fd 100644 --- a/src/test/regress/expected/insert.out +++ b/src/test/regress/expected/insert.out @@ -165,6 +165,10 @@ create table range_parted (  	a text,  	b int  ) partition by range (a, (b+0)); +-- no partitions, so fail +insert into range_parted values ('a', 11); +ERROR:  no partition of relation "range_parted" found for row +DETAIL:  Partition key of the failing row contains (a, (b + 0)) = (a, 11).  create table part1 partition of range_parted for values from ('a', 1) to ('a', 10);  create table part2 partition of range_parted for values from ('a', 10) to ('a', 20);  create table part3 partition of range_parted for values from ('b', 1) to ('b', 10); diff --git a/src/test/regress/sql/insert.sql b/src/test/regress/sql/insert.sql index 310b818076c..0150b6bb0fe 100644 --- a/src/test/regress/sql/insert.sql +++ b/src/test/regress/sql/insert.sql @@ -90,6 +90,10 @@ create table range_parted (  	a text,  	b int  ) partition by range (a, (b+0)); + +-- no partitions, so fail +insert into range_parted values ('a', 11); +  create table part1 partition of range_parted for values from ('a', 1) to ('a', 10);  create table part2 partition of range_parted for values from ('a', 10) to ('a', 20);  create table part3 partition of range_parted for values from ('b', 1) to ('b', 10);  | 
