diff options
author | Peter Eisentraut <peter@eisentraut.org> | 2021-03-17 08:17:33 +0100 |
---|---|---|
committer | Peter Eisentraut <peter@eisentraut.org> | 2021-03-17 08:17:33 +0100 |
commit | e1ae40f381d0582981b1e63856bd4b060cfe2d53 (patch) | |
tree | d08b669dbf7da83e2481c548b8bf4cf1e84f3224 /src | |
parent | 378802e3713c6c0fce31d2390c134cd5d7c30157 (diff) | |
download | postgresql-e1ae40f381d0582981b1e63856bd4b060cfe2d53.tar.gz postgresql-e1ae40f381d0582981b1e63856bd4b060cfe2d53.zip |
Small error message improvement
Diffstat (limited to 'src')
-rw-r--r-- | src/backend/commands/tablecmds.c | 2 | ||||
-rw-r--r-- | src/test/regress/expected/foreign_data.out | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/backend/commands/tablecmds.c b/src/backend/commands/tablecmds.c index 559fa1d2e51..ffb1308a0c0 100644 --- a/src/backend/commands/tablecmds.c +++ b/src/backend/commands/tablecmds.c @@ -16673,7 +16673,7 @@ AttachPartitionEnsureIndexes(Relation rel, Relation attachrel) errmsg("cannot attach foreign table \"%s\" as partition of partitioned table \"%s\"", RelationGetRelationName(attachrel), RelationGetRelationName(rel)), - errdetail("Table \"%s\" contains unique indexes.", + errdetail("Partitioned table \"%s\" contains unique indexes.", RelationGetRelationName(rel)))); index_close(idxRel, AccessShareLock); } diff --git a/src/test/regress/expected/foreign_data.out b/src/test/regress/expected/foreign_data.out index b9e25820bc0..e4cdb780d0a 100644 --- a/src/test/regress/expected/foreign_data.out +++ b/src/test/regress/expected/foreign_data.out @@ -773,7 +773,7 @@ CREATE FOREIGN TABLE ft_part2 (a INT NOT NULL) SERVER s0; ALTER TABLE lt1 ATTACH PARTITION ft_part2 FOR VALUES FROM (1000) TO (2000); -- ERROR ERROR: cannot attach foreign table "ft_part2" as partition of partitioned table "lt1" -DETAIL: Table "lt1" contains unique indexes. +DETAIL: Partitioned table "lt1" contains unique indexes. DROP TABLE lt1; DROP FOREIGN TABLE ft_part2; CREATE TABLE lt1 (a INT) PARTITION BY RANGE (a); @@ -801,7 +801,7 @@ DETAIL: Table "lt1_part1" contains indexes that are unique. CREATE FOREIGN TABLE ft_part_1_2 (a INT NOT NULL) SERVER s0; ALTER TABLE lt1_part1 ATTACH PARTITION ft_part_1_2 FOR VALUES FROM (100) TO (200); ERROR: cannot attach foreign table "ft_part_1_2" as partition of partitioned table "lt1_part1" -DETAIL: Table "lt1_part1" contains unique indexes. +DETAIL: Partitioned table "lt1_part1" contains unique indexes. DROP TABLE lt1; DROP FOREIGN TABLE ft_part_1_2; -- ALTER FOREIGN TABLE |