mirror of
https://github.com/postgres/postgres.git
synced 2025-11-09 06:21:09 +03:00
Add some enumeration commas, for consistency
This commit is contained in:
@@ -248,7 +248,7 @@ gistValidateBufferingOption(char *value)
|
||||
ereport(ERROR,
|
||||
(errcode(ERRCODE_INVALID_PARAMETER_VALUE),
|
||||
errmsg("invalid value for \"buffering\" option"),
|
||||
errdetail("Valid values are \"on\", \"off\" and \"auto\".")));
|
||||
errdetail("Valid values are \"on\", \"off\", and \"auto\".")));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -739,7 +739,7 @@ AtPrepare_Notify(void)
|
||||
if (pendingActions || pendingNotifies)
|
||||
ereport(ERROR,
|
||||
(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
|
||||
errmsg("cannot PREPARE a transaction that has executed LISTEN, UNLISTEN or NOTIFY")));
|
||||
errmsg("cannot PREPARE a transaction that has executed LISTEN, UNLISTEN, or NOTIFY")));
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
@@ -2115,7 +2115,7 @@ renameatt_check(Oid myrelid, Form_pg_class classform, bool recursing)
|
||||
relkind != RELKIND_FOREIGN_TABLE)
|
||||
ereport(ERROR,
|
||||
(errcode(ERRCODE_WRONG_OBJECT_TYPE),
|
||||
errmsg("\"%s\" is not a table, view, composite type, index or foreign table",
|
||||
errmsg("\"%s\" is not a table, view, composite type, index, or foreign table",
|
||||
NameStr(classform->relname))));
|
||||
|
||||
/*
|
||||
|
||||
@@ -1391,7 +1391,7 @@ parse_hba_auth_opt(char *name, char *val, HbaLine *hbaline, int line_num)
|
||||
hbaline->auth_method != uaGSS &&
|
||||
hbaline->auth_method != uaSSPI &&
|
||||
hbaline->auth_method != uaCert)
|
||||
INVALID_AUTH_OPTION("map", gettext_noop("ident, peer, krb5, gssapi, sspi and cert"));
|
||||
INVALID_AUTH_OPTION("map", gettext_noop("ident, peer, krb5, gssapi, sspi, and cert"));
|
||||
hbaline->usermap = pstrdup(val);
|
||||
}
|
||||
else if (strcmp(name, "clientcert") == 0)
|
||||
@@ -1510,7 +1510,7 @@ parse_hba_auth_opt(char *name, char *val, HbaLine *hbaline, int line_num)
|
||||
if (hbaline->auth_method != uaKrb5 &&
|
||||
hbaline->auth_method != uaGSS &&
|
||||
hbaline->auth_method != uaSSPI)
|
||||
INVALID_AUTH_OPTION("krb_realm", gettext_noop("krb5, gssapi and sspi"));
|
||||
INVALID_AUTH_OPTION("krb_realm", gettext_noop("krb5, gssapi, and sspi"));
|
||||
hbaline->krb_realm = pstrdup(val);
|
||||
}
|
||||
else if (strcmp(name, "include_realm") == 0)
|
||||
@@ -1518,7 +1518,7 @@ parse_hba_auth_opt(char *name, char *val, HbaLine *hbaline, int line_num)
|
||||
if (hbaline->auth_method != uaKrb5 &&
|
||||
hbaline->auth_method != uaGSS &&
|
||||
hbaline->auth_method != uaSSPI)
|
||||
INVALID_AUTH_OPTION("include_realm", gettext_noop("krb5, gssapi and sspi"));
|
||||
INVALID_AUTH_OPTION("include_realm", gettext_noop("krb5, gssapi, and sspi"));
|
||||
if (strcmp(val, "1") == 0)
|
||||
hbaline->include_realm = true;
|
||||
else
|
||||
|
||||
@@ -2750,7 +2750,7 @@ width_bucket_float8(PG_FUNCTION_ARGS)
|
||||
if (isnan(operand) || isnan(bound1) || isnan(bound2))
|
||||
ereport(ERROR,
|
||||
(errcode(ERRCODE_INVALID_ARGUMENT_FOR_WIDTH_BUCKET_FUNCTION),
|
||||
errmsg("operand, lower bound and upper bound cannot be NaN")));
|
||||
errmsg("operand, lower bound, and upper bound cannot be NaN")));
|
||||
|
||||
/* Note that we allow "operand" to be infinite */
|
||||
if (isinf(bound1) || isinf(bound2))
|
||||
|
||||
@@ -1223,7 +1223,7 @@ width_bucket_numeric(PG_FUNCTION_ARGS)
|
||||
NUMERIC_IS_NAN(bound2))
|
||||
ereport(ERROR,
|
||||
(errcode(ERRCODE_INVALID_ARGUMENT_FOR_WIDTH_BUCKET_FUNCTION),
|
||||
errmsg("operand, lower bound and upper bound cannot be NaN")));
|
||||
errmsg("operand, lower bound, and upper bound cannot be NaN")));
|
||||
|
||||
init_var(&result_var);
|
||||
init_var(&count_var);
|
||||
|
||||
@@ -2240,7 +2240,7 @@ static struct config_int ConfigureNamesInt[] =
|
||||
},
|
||||
{
|
||||
{"autovacuum_analyze_threshold", PGC_SIGHUP, AUTOVACUUM,
|
||||
gettext_noop("Minimum number of tuple inserts, updates or deletes prior to analyze."),
|
||||
gettext_noop("Minimum number of tuple inserts, updates, or deletes prior to analyze."),
|
||||
NULL
|
||||
},
|
||||
&autovacuum_anl_thresh,
|
||||
@@ -2494,7 +2494,7 @@ static struct config_real ConfigureNamesReal[] =
|
||||
},
|
||||
{
|
||||
{"autovacuum_analyze_scale_factor", PGC_SIGHUP, AUTOVACUUM,
|
||||
gettext_noop("Number of tuple inserts, updates or deletes prior to analyze as a fraction of reltuples."),
|
||||
gettext_noop("Number of tuple inserts, updates, or deletes prior to analyze as a fraction of reltuples."),
|
||||
NULL
|
||||
},
|
||||
&autovacuum_anl_scale,
|
||||
|
||||
Reference in New Issue
Block a user