Skip to content

Commit 9f8b717

Browse files
committed
Message style fixes
1 parent 9a83afe commit 9f8b717

File tree

6 files changed

+13
-11
lines changed

6 files changed

+13
-11
lines changed

src/backend/access/table/tableamapi.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,8 @@ check_default_table_access_method(char **newval, void **extra, GucSource source)
109109

110110
if (strlen(*newval) >= NAMEDATALEN)
111111
{
112-
GUC_check_errdetail("default_table_access_method is too long (maximum %d characters).",
113-
NAMEDATALEN - 1);
112+
GUC_check_errdetail("%s is too long (maximum %d characters).",
113+
"default_table_access_method", NAMEDATALEN - 1);
114114
return false;
115115
}
116116

@@ -131,7 +131,7 @@ check_default_table_access_method(char **newval, void **extra, GucSource source)
131131
{
132132
ereport(NOTICE,
133133
(errcode(ERRCODE_UNDEFINED_OBJECT),
134-
errmsg("Table access method \"%s\" does not exist",
134+
errmsg("table access method \"%s\" does not exist",
135135
*newval)));
136136
}
137137
else

src/backend/access/transam/twophase.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2190,12 +2190,12 @@ ProcessTwoPhaseBuffer(TransactionId xid,
21902190
if (fromdisk)
21912191
ereport(ERROR,
21922192
(errcode(ERRCODE_DATA_CORRUPTED),
2193-
errmsg("corrupted two-phase state file for transaction \"%u\"",
2193+
errmsg("corrupted two-phase state file for transaction %u",
21942194
xid)));
21952195
else
21962196
ereport(ERROR,
21972197
(errcode(ERRCODE_DATA_CORRUPTED),
2198-
errmsg("corrupted two-phase state in memory for transaction \"%u\"",
2198+
errmsg("corrupted two-phase state in memory for transaction %u",
21992199
xid)));
22002200
}
22012201

src/backend/commands/indexcmds.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -639,7 +639,7 @@ DefineIndex(Oid relationId,
639639
if (partitioned && tablespaceId == MyDatabaseTableSpace)
640640
ereport(ERROR,
641641
(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
642-
errmsg("cannot specify default tablespace for partitioned relation")));
642+
errmsg("cannot specify default tablespace for partitioned relations")));
643643
}
644644
else
645645
{

src/backend/commands/tablecmds.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7689,12 +7689,14 @@ ATAddForeignKeyConstraint(List **wqueue, AlteredTableInfo *tab, Relation rel,
76897689
fkconstraint->fk_upd_action == FKCONSTR_ACTION_CASCADE)
76907690
ereport(ERROR,
76917691
(errcode(ERRCODE_SYNTAX_ERROR),
7692-
errmsg("invalid ON UPDATE action for foreign key constraint containing generated column")));
7692+
errmsg("invalid %s action for foreign key constraint containing generated column",
7693+
"ON UPDATE")));
76937694
if (fkconstraint->fk_del_action == FKCONSTR_ACTION_SETNULL ||
76947695
fkconstraint->fk_del_action == FKCONSTR_ACTION_SETDEFAULT)
76957696
ereport(ERROR,
76967697
(errcode(ERRCODE_SYNTAX_ERROR),
7697-
errmsg("invalid ON DELETE action for foreign key constraint containing generated column")));
7698+
errmsg("invalid %s action for foreign key constraint containing generated column",
7699+
"ON DELETE")));
76987700
}
76997701
}
77007702

src/backend/utils/misc/guc.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11639,8 +11639,8 @@ check_recovery_target_name(char **newval, void **extra, GucSource source)
1163911639
/* Use the value of newval directly */
1164011640
if (strlen(*newval) >= MAXFNAMELEN)
1164111641
{
11642-
GUC_check_errdetail("recovery_target_name is too long (maximum %d characters).",
11643-
MAXFNAMELEN - 1);
11642+
GUC_check_errdetail("%s is too long (maximum %d characters).",
11643+
"recovery_target_name", MAXFNAMELEN - 1);
1164411644
return false;
1164511645
}
1164611646
return true;

src/test/regress/output/tablespace.source

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ Tablespace: "regress_tblspace"
106106
CREATE TABLE testschema.dflt (a int PRIMARY KEY) PARTITION BY LIST (a) TABLESPACE pg_default;
107107
ERROR: cannot specify default tablespace for partitioned relations
108108
CREATE TABLE testschema.dflt (a int PRIMARY KEY USING INDEX TABLESPACE pg_default) PARTITION BY LIST (a);
109-
ERROR: cannot specify default tablespace for partitioned relation
109+
ERROR: cannot specify default tablespace for partitioned relations
110110
SET default_tablespace TO 'pg_default';
111111
CREATE TABLE testschema.dflt (a int PRIMARY KEY) PARTITION BY LIST (a) TABLESPACE regress_tblspace;
112112
ERROR: cannot specify default tablespace for partitioned relations

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy