Skip to content

Commit e1ae40f

Browse files
committed
Small error message improvement
1 parent 378802e commit e1ae40f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/backend/commands/tablecmds.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -16673,7 +16673,7 @@ AttachPartitionEnsureIndexes(Relation rel, Relation attachrel)
1667316673
errmsg("cannot attach foreign table \"%s\" as partition of partitioned table \"%s\"",
1667416674
RelationGetRelationName(attachrel),
1667516675
RelationGetRelationName(rel)),
16676-
errdetail("Table \"%s\" contains unique indexes.",
16676+
errdetail("Partitioned table \"%s\" contains unique indexes.",
1667716677
RelationGetRelationName(rel))));
1667816678
index_close(idxRel, AccessShareLock);
1667916679
}

src/test/regress/expected/foreign_data.out

+2-2
Original file line numberDiff line numberDiff line change
@@ -773,7 +773,7 @@ CREATE FOREIGN TABLE ft_part2 (a INT NOT NULL) SERVER s0;
773773
ALTER TABLE lt1 ATTACH PARTITION ft_part2
774774
FOR VALUES FROM (1000) TO (2000); -- ERROR
775775
ERROR: cannot attach foreign table "ft_part2" as partition of partitioned table "lt1"
776-
DETAIL: Table "lt1" contains unique indexes.
776+
DETAIL: Partitioned table "lt1" contains unique indexes.
777777
DROP TABLE lt1;
778778
DROP FOREIGN TABLE ft_part2;
779779
CREATE TABLE lt1 (a INT) PARTITION BY RANGE (a);
@@ -801,7 +801,7 @@ DETAIL: Table "lt1_part1" contains indexes that are unique.
801801
CREATE FOREIGN TABLE ft_part_1_2 (a INT NOT NULL) SERVER s0;
802802
ALTER TABLE lt1_part1 ATTACH PARTITION ft_part_1_2 FOR VALUES FROM (100) TO (200);
803803
ERROR: cannot attach foreign table "ft_part_1_2" as partition of partitioned table "lt1_part1"
804-
DETAIL: Table "lt1_part1" contains unique indexes.
804+
DETAIL: Partitioned table "lt1_part1" contains unique indexes.
805805
DROP TABLE lt1;
806806
DROP FOREIGN TABLE ft_part_1_2;
807807
-- ALTER FOREIGN TABLE

0 commit comments

Comments
 (0)