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

Commite1ae40f

Browse files
committed
Small error message improvement
1 parent378802e commite1ae40f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

‎src/backend/commands/tablecmds.c

Lines changed: 1 addition & 1 deletion
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

Lines changed: 2 additions & 2 deletions
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)

[8]ページ先頭

©2009-2025 Movatter.jp