Add missing serial commas
authorPeter Eisentraut <peter_e@gmx.net>
Tue, 15 Jul 2014 12:25:27 +0000 (08:25 -0400)
committerPeter Eisentraut <peter_e@gmx.net>
Tue, 15 Jul 2014 12:31:50 +0000 (08:31 -0400)
Also update one place where the wal_level "logical" was not added to an
error message.

src/backend/access/transam/xlog.c
src/backend/access/transam/xlogfuncs.c
src/backend/postmaster/postmaster.c
src/backend/utils/adt/json.c
src/test/regress/expected/json.out
src/test/regress/expected/json_1.out

index 9f417dee2983f5ce43a2a0f27eb9baca3d0eee0d..e4f9595ee5fef92981e771c8c10b7dec537542cb 100644 (file)
@@ -9663,7 +9663,7 @@ do_pg_start_backup(const char *backupidstr, bool fast, TimeLineID *starttli_p,
        ereport(ERROR,
                (errcode(ERRCODE_OBJECT_NOT_IN_PREREQUISITE_STATE),
              errmsg("WAL level not sufficient for making an online backup"),
-                errhint("wal_level must be set to \"archive\", \"hot_standby\" or \"logical\" at server start.")));
+                errhint("wal_level must be set to \"archive\", \"hot_standby\", or \"logical\" at server start.")));
 
    if (strlen(backupidstr) > MAXPGPATH)
        ereport(ERROR,
@@ -9999,7 +9999,7 @@ do_pg_stop_backup(char *labelfile, bool waitforarchive, TimeLineID *stoptli_p)
        ereport(ERROR,
                (errcode(ERRCODE_OBJECT_NOT_IN_PREREQUISITE_STATE),
              errmsg("WAL level not sufficient for making an online backup"),
-                errhint("wal_level must be set to \"archive\", \"hot_standby\" or \"logical\" at server start.")));
+                errhint("wal_level must be set to \"archive\", \"hot_standby\", or \"logical\" at server start.")));
 
    /*
     * OK to update backup counters and forcePageWrites
index 8a87581e79c6128e4f7a1a5260b3b9dfcc1bddcd..f186468dd2c2dd260bc4831bddb7e27f62fae1a5 100644 (file)
@@ -144,7 +144,7 @@ pg_create_restore_point(PG_FUNCTION_ARGS)
        ereport(ERROR,
                (errcode(ERRCODE_OBJECT_NOT_IN_PREREQUISITE_STATE),
             errmsg("WAL level not sufficient for creating a restore point"),
-                errhint("wal_level must be set to \"archive\" or \"hot_standby\" at server start.")));
+                errhint("wal_level must be set to \"archive\", \"hot_standby\", or \"logical\" at server start.")));
 
    restore_name_str = text_to_cstring(restore_name);
 
index 5a406e12c24a9e3d20f490d718c8c8f3a5987047..198c97ecf5d921c42f3c955eb03be78a7fea98ac 100644 (file)
@@ -825,10 +825,10 @@ PostmasterMain(int argc, char *argv[])
    }
    if (XLogArchiveMode && wal_level == WAL_LEVEL_MINIMAL)
        ereport(ERROR,
-               (errmsg("WAL archival (archive_mode=on) requires wal_level \"archive\", \"hot_standby\" or \"logical\"")));
+               (errmsg("WAL archival (archive_mode=on) requires wal_level \"archive\", \"hot_standby\", or \"logical\"")));
    if (max_wal_senders > 0 && wal_level == WAL_LEVEL_MINIMAL)
        ereport(ERROR,
-               (errmsg("WAL streaming (max_wal_senders > 0) requires wal_level \"archive\", \"hot_standby\" or \"logical\"")));
+               (errmsg("WAL streaming (max_wal_senders > 0) requires wal_level \"archive\", \"hot_standby\", or \"logical\"")));
 
    /*
     * Other one-time internal sanity checks can go here, if they are fast.
index bc0c602fa3e487ca6e7fb3aef8aa7561e3c55235..299b2a25ddbc905428f1588e0e29063eccedcf2b 100644 (file)
@@ -1347,7 +1347,7 @@ datum_to_json(Datum val, bool is_null, StringInfo result,
         tcategory == JSONTYPE_CAST))
        ereport(ERROR,
                (errcode(ERRCODE_INVALID_PARAMETER_VALUE),
-         errmsg("key value must be scalar, not array, composite or json")));
+         errmsg("key value must be scalar, not array, composite, or json")));
 
    switch (tcategory)
    {
index 99036a23ca865d20539aeb9db88636a17a00d645..cd6ea5b12d542cf697a33e7fe3dc0a35c2f5fafd 100644 (file)
@@ -1152,11 +1152,11 @@ SELECT json_build_object(1,2);
 SELECT json_build_object(null,2);
 ERROR:  arg 1: key cannot be null
 SELECT json_build_object(r,2) FROM (SELECT 1 AS a, 2 AS b) r;
-ERROR:  key value must be scalar, not array, composite or json
+ERROR:  key value must be scalar, not array, composite, or json
 SELECT json_build_object(json '{"a":1,"b":2}', 3);
-ERROR:  key value must be scalar, not array, composite or json
+ERROR:  key value must be scalar, not array, composite, or json
 SELECT json_build_object('{1,2,3}'::int[], 3);
-ERROR:  key value must be scalar, not array, composite or json
+ERROR:  key value must be scalar, not array, composite, or json
 CREATE TEMP TABLE foo (serial_num int, name text, type text);
 INSERT INTO foo VALUES (847001,'t15','GE1043');
 INSERT INTO foo VALUES (847002,'t16','GE1043');
index e74aabec8a1d3016d7fd483d9bbed30f7ed5deb9..51657a8d70fb7a49c07f403bf045610b82427325 100644 (file)
@@ -1148,11 +1148,11 @@ SELECT json_build_object(1,2);
 SELECT json_build_object(null,2);
 ERROR:  arg 1: key cannot be null
 SELECT json_build_object(r,2) FROM (SELECT 1 AS a, 2 AS b) r;
-ERROR:  key value must be scalar, not array, composite or json
+ERROR:  key value must be scalar, not array, composite, or json
 SELECT json_build_object(json '{"a":1,"b":2}', 3);
-ERROR:  key value must be scalar, not array, composite or json
+ERROR:  key value must be scalar, not array, composite, or json
 SELECT json_build_object('{1,2,3}'::int[], 3);
-ERROR:  key value must be scalar, not array, composite or json
+ERROR:  key value must be scalar, not array, composite, or json
 CREATE TEMP TABLE foo (serial_num int, name text, type text);
 INSERT INTO foo VALUES (847001,'t15','GE1043');
 INSERT INTO foo VALUES (847002,'t16','GE1043');