]> granicus.if.org Git - postgresql/commitdiff
Add some enumeration commas, for consistency
authorPeter Eisentraut <peter_e@gmx.net>
Fri, 24 Feb 2012 09:04:45 +0000 (11:04 +0200)
committerPeter Eisentraut <peter_e@gmx.net>
Fri, 24 Feb 2012 09:04:45 +0000 (11:04 +0200)
src/backend/access/gist/gistbuild.c
src/backend/commands/async.c
src/backend/commands/tablecmds.c
src/backend/libpq/hba.c
src/backend/utils/adt/float.c
src/backend/utils/adt/numeric.c
src/backend/utils/misc/guc.c
src/bin/pg_basebackup/pg_basebackup.c
src/bin/pg_dump/pg_dump.c
src/bin/pg_dump/pg_restore.c
src/test/regress/expected/numeric.out

index 3dc3e96df4d9c13833c8b1dc15a5a3e06f5078fc..988896d289f5a727db81c97e01edab947b11e1ae 100644 (file)
@@ -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\".")));
        }
 }
 
index a81f7c76c3eb05def0e4faef1f639e8f518f8daa..fcb087ed15dfbb4d567ee0c742e1db8ec1353a2d 100644 (file)
@@ -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")));
 }
 
 /*
index 07dc326cea7c4c034d4928e605b4fd8eedd43623..28889c1f44040f7fdb6465f4e0c6d3c77580d7b5 100644 (file)
@@ -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))));
 
        /*
index a83b52ea29065370c2e481eb0be9cbb923629e2d..56229cb4df8b29c19a174049a75dbe24c9cfc60f 100644 (file)
@@ -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
index 245030f531c532254966284b57f700ae49953938..ca0042a1762dcf24086ea647dccf6094e957895e 100644 (file)
@@ -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))
index cee6cab954c7c8addc8081412f114eeecd5b796b..627870a4464e379020154d48d073898b643ac4d6 100644 (file)
@@ -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);
index 84b330c6d3924548810fb49523811bb247f8bf68..a5becbe8ff775124809c95ebc832b1508392071f 100644 (file)
@@ -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,
index aabbdac8d007f05f9df56881822c011f532e0916..b39d2e7bf38071a1503e899ebde15c08fc4015de 100644 (file)
@@ -1245,7 +1245,7 @@ main(int argc, char **argv)
                                        streamwal = true;
                                else
                                {
-                                       fprintf(stderr, _("%s: invalid xlog option \"%s\", must be empty, \"fetch\" or \"stream\"\n"),
+                                       fprintf(stderr, _("%s: invalid xlog option \"%s\", must be empty, \"fetch\", or \"stream\"\n"),
                                                        progname, optarg);
                                        exit(1);
                                }
index c3c861d85787ff9b89bbb9074403a55d6b14ee5f..d845c90ac828377fc0c3453abbc610f0e13c35ae 100644 (file)
@@ -817,7 +817,7 @@ help(const char *progname)
        printf(_("  --no-tablespaces            do not dump tablespace assignments\n"));
        printf(_("  --no-unlogged-table-data    do not dump unlogged table data\n"));
        printf(_("  --quote-all-identifiers     quote all identifiers, even if not key words\n"));
-       printf(_("  --section=SECTION           dump named section (pre-data, data or post-data)\n"));
+       printf(_("  --section=SECTION           dump named section (pre-data, data, or post-data)\n"));
        printf(_("  --serializable-deferrable   wait until the dump can run without anomalies\n"));
        printf(_("  --use-set-session-authorization\n"
                         "                              use SET SESSION AUTHORIZATION commands instead of\n"
index 1c026cf91a5bcd5e603d1d6bbaa04a5555bca0b0..b5f4c627c4063cd5c90bd96ec94e48bb2c57056a 100644 (file)
@@ -463,7 +463,7 @@ usage(const char *progname)
                         "                           created\n"));
        printf(_("  --no-security-labels     do not restore security labels\n"));
        printf(_("  --no-tablespaces         do not restore tablespace assignments\n"));
-       printf(_("  --section=SECTION        restore named section (pre-data, data or post-data)\n"));
+       printf(_("  --section=SECTION        restore named section (pre-data, data, or post-data)\n"));
        printf(_("  --use-set-session-authorization\n"
                         "                           use SET SESSION AUTHORIZATION commands instead of\n"
          "                           ALTER OWNER commands to set ownership\n"));
index 71c520e5e7a03edd55578e76de01b32aa93715ff..94cb0ed551dbeb707cff0b04a354c09c83c98bd5 100644 (file)
@@ -746,9 +746,9 @@ ERROR:  count must be greater than zero
 SELECT width_bucket(3.5::float8, 3.0::float8, 3.0::float8, 888);
 ERROR:  lower bound cannot equal upper bound
 SELECT width_bucket('NaN', 3.0, 4.0, 888);
-ERROR:  operand, lower bound and upper bound cannot be NaN
+ERROR:  operand, lower bound, and upper bound cannot be NaN
 SELECT width_bucket(0::float8, 'NaN', 4.0::float8, 888);
-ERROR:  operand, lower bound and upper bound cannot be NaN
+ERROR:  operand, lower bound, and upper bound cannot be NaN
 -- normal operation
 CREATE TABLE width_bucket_test (operand_num numeric, operand_f8 float8);
 COPY width_bucket_test (operand_num) FROM stdin;