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

Commitcae459d

Browse files
committed
Message style improvement
Backpatch the part ofedee0c6 that applies toa90bdd7, whichwas also backpatched. That way, the message is consistent in allbranches.
1 parent477830c commitcae459d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

‎src/backend/commands/tablecmds.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9310,7 +9310,7 @@ CloneFkReferencing(List **wqueue, Relation parentRel, Relation partRel)
93109310
if (fk->confrelid == RelationGetRelid(partRel))
93119311
ereport(ERROR,
93129312
(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
9313-
errmsg("can't attach table \"%s\" as a partitionwhich is referenced by foreign key \"%s\"",
9313+
errmsg("cannot attach table \"%s\" as a partitionbecause it is referenced by foreign key \"%s\"",
93149314
RelationGetRelationName(partRel),
93159315
get_constraint_name(fk->conoid))));
93169316

‎src/test/regress/expected/foreign_key.out

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1901,7 +1901,7 @@ ALTER TABLE fk_partitioned_fk ATTACH PARTITION fk_partitioned_fk_2
19011901
CREATE TABLE fk_partitioned_pk_6 (a int PRIMARY KEY);
19021902
CREATE TABLE fk_partitioned_fk_6 (a int REFERENCES fk_partitioned_pk_6) PARTITION BY LIST (a);
19031903
ALTER TABLE fk_partitioned_fk_6 ATTACH PARTITION fk_partitioned_pk_6 FOR VALUES IN (1);
1904-
ERROR:can't attach table "fk_partitioned_pk_6" as a partitionwhich is referenced by foreign key "fk_partitioned_fk_6_a_fkey"
1904+
ERROR:cannot attach table "fk_partitioned_pk_6" as a partitionbecause it is referenced by foreign key "fk_partitioned_fk_6_a_fkey"
19051905
DROP TABLE fk_partitioned_pk_6, fk_partitioned_fk_6;
19061906
-- This case is similar to above, but the referenced relation is one level
19071907
-- lower in the hierarchy. This one fails in a different way as the above,

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp