Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd0049f8

Browse files
committed
Fix regression test breakage from recent change in default name of exclusion-constraint index.
1 parent37afd3e commitd0049f8

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

‎src/test/regress/output/constraints.source

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -523,15 +523,15 @@ CREATE TABLE circles (
523523
(c1 WITH &&, (c2::circle) WITH &&)
524524
WHERE (circle_center(c1) <> '(0,0)')
525525
);
526-
NOTICE: CREATE TABLE / EXCLUDE will create implicit index "circles_c1_c2_exclusion" for table "circles"
526+
NOTICE: CREATE TABLE / EXCLUDE will create implicit index "circles_c1_c2_excl" for table "circles"
527527
-- these should succeed because they don't match the index predicate
528528
INSERT INTO circles VALUES('<(0,0), 5>', '<(0,0), 5>');
529529
INSERT INTO circles VALUES('<(0,0), 5>', '<(0,0), 4>');
530530
-- succeed
531531
INSERT INTO circles VALUES('<(10,10), 10>', '<(0,0), 5>');
532532
-- fail, overlaps
533533
INSERT INTO circles VALUES('<(20,20), 10>', '<(0,0), 4>');
534-
ERROR: conflicting key value violates exclusion constraint "circles_c1_c2_exclusion"
534+
ERROR: conflicting key value violates exclusion constraint "circles_c1_c2_excl"
535535
DETAIL: Key (c1, (c2::circle))=(<(20,20),10>, <(0,0),4>) conflicts with existing key (c1, (c2::circle))=(<(10,10),10>, <(0,0),5>).
536536
-- succeed because c1 doesn't overlap
537537
INSERT INTO circles VALUES('<(20,20), 1>', '<(0,0), 5>');
@@ -540,8 +540,8 @@ INSERT INTO circles VALUES('<(20,20), 10>', '<(10,10), 5>');
540540
-- should fail on existing data without the WHERE clause
541541
ALTER TABLE circles ADD EXCLUDE USING gist
542542
(c1 WITH &&, (c2::circle) WITH &&);
543-
NOTICE: ALTER TABLE / ADD EXCLUDE will create implicit index "circles_c1_c2_exclusion1" for table "circles"
544-
ERROR: could not create exclusion constraint "circles_c1_c2_exclusion1"
543+
NOTICE: ALTER TABLE / ADD EXCLUDE will create implicit index "circles_c1_c2_excl1" for table "circles"
544+
ERROR: could not create exclusion constraint "circles_c1_c2_excl1"
545545
DETAIL: Key (c1, (c2::circle))=(<(0,0),5>, <(0,0),5>) conflicts with key (c1, (c2::circle))=(<(0,0),5>, <(0,0),4>).
546546
DROP TABLE circles;
547547
-- Check deferred exclusion constraint
@@ -570,7 +570,7 @@ ALTER TABLE deferred_excl DROP CONSTRAINT deferred_excl_con;
570570
-- This should fail, but worth testing because of HOT updates
571571
UPDATE deferred_excl SET f1 = 3;
572572
ALTER TABLE deferred_excl ADD EXCLUDE (f1 WITH =);
573-
NOTICE: ALTER TABLE / ADD EXCLUDE will create implicit index "deferred_excl_f1_exclusion" for table "deferred_excl"
574-
ERROR: could not create exclusion constraint "deferred_excl_f1_exclusion"
573+
NOTICE: ALTER TABLE / ADD EXCLUDE will create implicit index "deferred_excl_f1_excl" for table "deferred_excl"
574+
ERROR: could not create exclusion constraint "deferred_excl_f1_excl"
575575
DETAIL: Key (f1)=(3) conflicts with key (f1)=(3).
576576
DROP TABLE deferred_excl;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp