We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent9a83afe commit9f8b717Copy full SHA for 9f8b717
src/backend/access/table/tableamapi.c
@@ -109,8 +109,8 @@ check_default_table_access_method(char **newval, void **extra, GucSource source)
109
110
if (strlen(*newval) >=NAMEDATALEN)
111
{
112
-GUC_check_errdetail("default_table_access_method is too long (maximum %d characters).",
113
-NAMEDATALEN-1);
+GUC_check_errdetail("%s is too long (maximum %d characters).",
+"default_table_access_method",NAMEDATALEN-1);
114
return false;
115
}
116
@@ -131,7 +131,7 @@ check_default_table_access_method(char **newval, void **extra, GucSource source)
131
132
ereport(NOTICE,
133
(errcode(ERRCODE_UNDEFINED_OBJECT),
134
-errmsg("Table access method \"%s\" does not exist",
+errmsg("table access method \"%s\" does not exist",
135
*newval)));
136
137
else
src/backend/access/transam/twophase.c
@@ -2190,12 +2190,12 @@ ProcessTwoPhaseBuffer(TransactionId xid,
2190
if (fromdisk)
2191
ereport(ERROR,
2192
(errcode(ERRCODE_DATA_CORRUPTED),
2193
-errmsg("corrupted two-phase state file for transaction\"%u\"",
+errmsg("corrupted two-phase state file for transaction%u",
2194
xid)));
2195
2196
2197
2198
-errmsg("corrupted two-phase state in memory for transaction\"%u\"",
+errmsg("corrupted two-phase state in memory for transaction%u",
2199
2200
2201
src/backend/commands/indexcmds.c
@@ -639,7 +639,7 @@ DefineIndex(Oid relationId,
639
if (partitioned&&tablespaceId==MyDatabaseTableSpace)
640
641
(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
642
-errmsg("cannot specify default tablespace for partitionedrelation")));
+errmsg("cannot specify default tablespace for partitionedrelations")));
643
644
645
src/backend/commands/tablecmds.c
@@ -7689,12 +7689,14 @@ ATAddForeignKeyConstraint(List **wqueue, AlteredTableInfo *tab, Relation rel,
7689
fkconstraint->fk_upd_action == FKCONSTR_ACTION_CASCADE)
7690
7691
(errcode(ERRCODE_SYNTAX_ERROR),
7692
- errmsg("invalid ON UPDATE action for foreign key constraint containing generated column")));
+ errmsg("invalid %s action for foreign key constraint containing generated column",
7693
+"ON UPDATE")));
7694
if (fkconstraint->fk_del_action == FKCONSTR_ACTION_SETNULL ||
7695
fkconstraint->fk_del_action == FKCONSTR_ACTION_SETDEFAULT)
7696
7697
- errmsg("invalid ON DELETE action for foreign key constraint containing generated column")));
7698
7699
+"ON DELETE")));
7700
7701
7702
src/backend/utils/misc/guc.c
@@ -11639,8 +11639,8 @@ check_recovery_target_name(char **newval, void **extra, GucSource source)
11639
/* Use the value of newval directly */
11640
if (strlen(*newval) >=MAXFNAMELEN)
11641
11642
-GUC_check_errdetail("recovery_target_name is too long (maximum %d characters).",
11643
-MAXFNAMELEN-1);
+"recovery_target_name",MAXFNAMELEN-1);
11644
11645
11646
return true;
src/test/regress/output/tablespace.source
@@ -106,7 +106,7 @@ Tablespace: "regress_tblspace"
106
CREATE TABLE testschema.dflt (a int PRIMARY KEY) PARTITION BY LIST (a) TABLESPACE pg_default;
107
ERROR: cannot specify default tablespace for partitioned relations
108
CREATE TABLE testschema.dflt (a int PRIMARY KEY USING INDEX TABLESPACE pg_default) PARTITION BY LIST (a);
-ERROR: cannot specify default tablespace for partitionedrelation
+ERROR: cannot specify default tablespace for partitionedrelations
SET default_tablespace TO 'pg_default';
CREATE TABLE testschema.dflt (a int PRIMARY KEY) PARTITION BY LIST (a) TABLESPACE regress_tblspace;