Message style improvements
authorPeter Eisentraut <peter_e@gmx.net>
Thu, 28 Jul 2016 20:18:35 +0000 (16:18 -0400)
committerPeter Eisentraut <peter_e@gmx.net>
Thu, 28 Jul 2016 20:34:44 +0000 (16:34 -0400)
src/backend/access/brin/brin_validate.c
src/backend/access/gin/ginvalidate.c
src/backend/access/gist/gistvalidate.c
src/backend/access/hash/hashvalidate.c
src/backend/access/nbtree/nbtvalidate.c
src/backend/access/spgist/spgvalidate.c
src/backend/access/transam/twophase.c
src/backend/executor/tqueue.c
src/backend/tsearch/spell.c

index 4cb1bca8e45e4c0e5af79f94dc6365d9e8f1b4bc..2b3a2cb0abc803bdd28e3e2513cc01e116edbec5 100644 (file)
@@ -112,7 +112,7 @@ brinvalidate(Oid opclassoid)
                {
                    ereport(INFO,
                            (errcode(ERRCODE_INVALID_OBJECT_DEFINITION),
-                            errmsg("brin opfamily %s contains function %s with invalid support number %d",
+                            errmsg("brin operator family \"%s\" contains function %s with invalid support number %d",
                                    opfamilyname,
                                    format_procedure(procform->amproc),
                                    procform->amprocnum)));
@@ -128,7 +128,7 @@ brinvalidate(Oid opclassoid)
        {
            ereport(INFO,
                    (errcode(ERRCODE_INVALID_OBJECT_DEFINITION),
-                    errmsg("brin opfamily %s contains function %s with wrong signature for support number %d",
+                    errmsg("brin operator family \"%s\" contains function %s with wrong signature for support number %d",
                            opfamilyname,
                            format_procedure(procform->amproc),
                            procform->amprocnum)));
@@ -150,7 +150,7 @@ brinvalidate(Oid opclassoid)
        {
            ereport(INFO,
                    (errcode(ERRCODE_INVALID_OBJECT_DEFINITION),
-                    errmsg("brin opfamily %s contains operator %s with invalid strategy number %d",
+                    errmsg("brin operator family \"%s\" contains operator %s with invalid strategy number %d",
                            opfamilyname,
                            format_operator(oprform->amopopr),
                            oprform->amopstrategy)));
@@ -179,7 +179,7 @@ brinvalidate(Oid opclassoid)
        {
            ereport(INFO,
                    (errcode(ERRCODE_INVALID_OBJECT_DEFINITION),
-                    errmsg("brin opfamily %s contains invalid ORDER BY specification for operator %s",
+                    errmsg("brin operator family \"%s\" contains invalid ORDER BY specification for operator %s",
                            opfamilyname,
                            format_operator(oprform->amopopr))));
            result = false;
@@ -192,7 +192,7 @@ brinvalidate(Oid opclassoid)
        {
            ereport(INFO,
                    (errcode(ERRCODE_INVALID_OBJECT_DEFINITION),
-                    errmsg("brin opfamily %s contains operator %s with wrong signature",
+                    errmsg("brin operator family \"%s\" contains operator %s with wrong signature",
                            opfamilyname,
                            format_operator(oprform->amopopr))));
            result = false;
@@ -230,7 +230,7 @@ brinvalidate(Oid opclassoid)
        {
            ereport(INFO,
                    (errcode(ERRCODE_INVALID_OBJECT_DEFINITION),
-                    errmsg("brin opfamily %s is missing operator(s) for types %s and %s",
+                    errmsg("brin operator family \"%s\" is missing operator(s) for types %s and %s",
                            opfamilyname,
                            format_type_be(thisgroup->lefttype),
                            format_type_be(thisgroup->righttype))));
@@ -240,7 +240,7 @@ brinvalidate(Oid opclassoid)
        {
            ereport(INFO,
                    (errcode(ERRCODE_INVALID_OBJECT_DEFINITION),
-                    errmsg("brin opfamily %s is missing support function(s) for types %s and %s",
+                    errmsg("brin operator family \"%s\" is missing support function(s) for types %s and %s",
                            opfamilyname,
                            format_type_be(thisgroup->lefttype),
                            format_type_be(thisgroup->righttype))));
@@ -253,7 +253,7 @@ brinvalidate(Oid opclassoid)
    {
        ereport(INFO,
                (errcode(ERRCODE_INVALID_OBJECT_DEFINITION),
-                errmsg("brin opclass %s is missing operator(s)",
+                errmsg("brin operator class \"%s\" is missing operator(s)",
                        opclassname)));
        result = false;
    }
@@ -264,7 +264,7 @@ brinvalidate(Oid opclassoid)
            continue;           /* got it */
        ereport(INFO,
                (errcode(ERRCODE_INVALID_OBJECT_DEFINITION),
-                errmsg("brin opclass %s is missing support function %d",
+                errmsg("brin operator class \"%s\" is missing support function %d",
                        opclassname, i)));
        result = false;
    }
index 87177fc96bc6e8adbcfe4187624dfb1548580bad..7518ededd95e1a006ad6b6292c6e2167ba0d46a8 100644 (file)
@@ -89,7 +89,7 @@ ginvalidate(Oid opclassoid)
        {
            ereport(INFO,
                    (errcode(ERRCODE_INVALID_OBJECT_DEFINITION),
-                    errmsg("gin opfamily %s contains support procedure %s with cross-type registration",
+                    errmsg("gin operator family \"%s\" contains support procedure %s with cross-type registration",
                            opfamilyname,
                            format_procedure(procform->amproc))));
            result = false;
@@ -145,7 +145,7 @@ ginvalidate(Oid opclassoid)
            default:
                ereport(INFO,
                        (errcode(ERRCODE_INVALID_OBJECT_DEFINITION),
-                        errmsg("gin opfamily %s contains function %s with invalid support number %d",
+                        errmsg("gin operator family \"%s\" contains function %s with invalid support number %d",
                                opfamilyname,
                                format_procedure(procform->amproc),
                                procform->amprocnum)));
@@ -157,7 +157,7 @@ ginvalidate(Oid opclassoid)
        {
            ereport(INFO,
                    (errcode(ERRCODE_INVALID_OBJECT_DEFINITION),
-                    errmsg("gin opfamily %s contains function %s with wrong signature for support number %d",
+                    errmsg("gin operator family \"%s\" contains function %s with wrong signature for support number %d",
                            opfamilyname,
                            format_procedure(procform->amproc),
                            procform->amprocnum)));
@@ -176,7 +176,7 @@ ginvalidate(Oid opclassoid)
        {
            ereport(INFO,
                    (errcode(ERRCODE_INVALID_OBJECT_DEFINITION),
-                    errmsg("gin opfamily %s contains operator %s with invalid strategy number %d",
+                    errmsg("gin operator family \"%s\" contains operator %s with invalid strategy number %d",
                            opfamilyname,
                            format_operator(oprform->amopopr),
                            oprform->amopstrategy)));
@@ -189,7 +189,7 @@ ginvalidate(Oid opclassoid)
        {
            ereport(INFO,
                    (errcode(ERRCODE_INVALID_OBJECT_DEFINITION),
-                    errmsg("gin opfamily %s contains invalid ORDER BY specification for operator %s",
+                    errmsg("gin operator family \"%s\" contains invalid ORDER BY specification for operator %s",
                            opfamilyname,
                            format_operator(oprform->amopopr))));
            result = false;
@@ -202,7 +202,7 @@ ginvalidate(Oid opclassoid)
        {
            ereport(INFO,
                    (errcode(ERRCODE_INVALID_OBJECT_DEFINITION),
-                    errmsg("gin opfamily %s contains operator %s with wrong signature",
+                    errmsg("gin operator family \"%s\" contains operator %s with wrong signature",
                            opfamilyname,
                            format_operator(oprform->amopopr))));
            result = false;
@@ -243,7 +243,7 @@ ginvalidate(Oid opclassoid)
            continue;           /* don't need both, see check below loop */
        ereport(INFO,
                (errcode(ERRCODE_INVALID_OBJECT_DEFINITION),
-                errmsg("gin opclass %s is missing support function %d",
+                errmsg("gin operator class \"%s\" is missing support function %d",
                        opclassname, i)));
        result = false;
    }
@@ -253,7 +253,7 @@ ginvalidate(Oid opclassoid)
    {
        ereport(INFO,
                (errcode(ERRCODE_INVALID_OBJECT_DEFINITION),
-                errmsg("gin opclass %s is missing support function %d or %d",
+                errmsg("gin operator class \"%s\" is missing support function %d or %d",
                        opclassname,
                        GIN_CONSISTENT_PROC, GIN_TRICONSISTENT_PROC)));
        result = false;
index d3ada703f30d81a4bde1fbb7cf44d7701f6ad19a..190a3d2f0cf56ba46e56177aa7c13aecd589eef0 100644 (file)
@@ -89,7 +89,7 @@ gistvalidate(Oid opclassoid)
        {
            ereport(INFO,
                    (errcode(ERRCODE_INVALID_OBJECT_DEFINITION),
-                    errmsg("gist opfamily %s contains support procedure %s with cross-type registration",
+                    errmsg("gist operator family \"%s\" contains support procedure %s with cross-type registration",
                            opfamilyname,
                            format_procedure(procform->amproc))));
            result = false;
@@ -142,7 +142,7 @@ gistvalidate(Oid opclassoid)
            default:
                ereport(INFO,
                        (errcode(ERRCODE_INVALID_OBJECT_DEFINITION),
-                        errmsg("gist opfamily %s contains function %s with invalid support number %d",
+                        errmsg("gist operator family \"%s\" contains function %s with invalid support number %d",
                                opfamilyname,
                                format_procedure(procform->amproc),
                                procform->amprocnum)));
@@ -154,7 +154,7 @@ gistvalidate(Oid opclassoid)
        {
            ereport(INFO,
                    (errcode(ERRCODE_INVALID_OBJECT_DEFINITION),
-                    errmsg("gist opfamily %s contains function %s with wrong signature for support number %d",
+                    errmsg("gist operator family \"%s\" contains function %s with wrong signature for support number %d",
                            opfamilyname,
                            format_procedure(procform->amproc),
                            procform->amprocnum)));
@@ -174,7 +174,7 @@ gistvalidate(Oid opclassoid)
        {
            ereport(INFO,
                    (errcode(ERRCODE_INVALID_OBJECT_DEFINITION),
-                    errmsg("gist opfamily %s contains operator %s with invalid strategy number %d",
+                    errmsg("gist operator family \"%s\" contains operator %s with invalid strategy number %d",
                            opfamilyname,
                            format_operator(oprform->amopopr),
                            oprform->amopstrategy)));
@@ -192,7 +192,7 @@ gistvalidate(Oid opclassoid)
            {
                ereport(INFO,
                        (errcode(ERRCODE_INVALID_OBJECT_DEFINITION),
-                        errmsg("gist opfamily %s contains unsupported ORDER BY specification for operator %s",
+                        errmsg("gist operator family \"%s\" contains unsupported ORDER BY specification for operator %s",
                                opfamilyname,
                                format_operator(oprform->amopopr))));
                result = false;
@@ -203,7 +203,7 @@ gistvalidate(Oid opclassoid)
            {
                ereport(INFO,
                        (errcode(ERRCODE_INVALID_OBJECT_DEFINITION),
-                        errmsg("gist opfamily %s contains incorrect ORDER BY opfamily specification for operator %s",
+                        errmsg("gist operator family \"%s\" contains incorrect ORDER BY opfamily specification for operator %s",
                                opfamilyname,
                                format_operator(oprform->amopopr))));
                result = false;
@@ -222,7 +222,7 @@ gistvalidate(Oid opclassoid)
        {
            ereport(INFO,
                    (errcode(ERRCODE_INVALID_OBJECT_DEFINITION),
-                    errmsg("gist opfamily %s contains operator %s with wrong signature",
+                    errmsg("gist operator family \"%s\" contains operator %s with wrong signature",
                            opfamilyname,
                            format_operator(oprform->amopopr))));
            result = false;
@@ -261,7 +261,7 @@ gistvalidate(Oid opclassoid)
            continue;           /* optional methods */
        ereport(INFO,
                (errcode(ERRCODE_INVALID_OBJECT_DEFINITION),
-                errmsg("gist opclass %s is missing support function %d",
+                errmsg("gist operator class \"%s\" is missing support function %d",
                        opclassname, i)));
        result = false;
    }
index f0395c5ce5f20046cfbca3ccb9c19ac5dc79243a..b9b7bb0395a3a5413c051d813886143d0d03b694 100644 (file)
@@ -95,7 +95,7 @@ hashvalidate(Oid opclassoid)
        {
            ereport(INFO,
                    (errcode(ERRCODE_INVALID_OBJECT_DEFINITION),
-                    errmsg("hash opfamily %s contains support procedure %s with cross-type registration",
+                    errmsg("hash operator family \"%s\" contains support procedure %s with cross-type registration",
                            opfamilyname,
                            format_procedure(procform->amproc))));
            result = false;
@@ -110,7 +110,7 @@ hashvalidate(Oid opclassoid)
                {
                    ereport(INFO,
                            (errcode(ERRCODE_INVALID_OBJECT_DEFINITION),
-                            errmsg("hash opfamily %s contains function %s with wrong signature for support number %d",
+                            errmsg("hash operator family \"%s\" contains function %s with wrong signature for support number %d",
                                    opfamilyname,
                                    format_procedure(procform->amproc),
                                    procform->amprocnum)));
@@