diff options
author | Peter Eisentraut | 2021-04-14 07:10:57 +0000 |
---|---|---|
committer | Peter Eisentraut | 2021-04-14 07:11:29 +0000 |
commit | 07e5e66742333ab100a557e6e3f710e92fa1fd92 (patch) | |
tree | 592d162eb2152278c60b1034381d523709c7e186 /src | |
parent | ac725ee0f98c3fec703ffd9b070da629608e9a1e (diff) |
Improve quoting in some error messages
Diffstat (limited to 'src')
-rw-r--r-- | src/backend/access/brin/brin.c | 4 | ||||
-rw-r--r-- | src/backend/access/index/indexam.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/backend/access/brin/brin.c b/src/backend/access/brin/brin.c index f885f3ab3af..c320e215082 100644 --- a/src/backend/access/brin/brin.c +++ b/src/backend/access/brin/brin.c @@ -1060,7 +1060,7 @@ brin_summarize_range(PG_FUNCTION_ARGS) if (heapRel == NULL || heapoid != IndexGetRelation(indexoid, false)) ereport(ERROR, (errcode(ERRCODE_UNDEFINED_TABLE), - errmsg("could not open parent table of index %s", + errmsg("could not open parent table of index \"%s\"", RelationGetRelationName(indexRel)))); /* OK, do it */ @@ -1137,7 +1137,7 @@ brin_desummarize_range(PG_FUNCTION_ARGS) if (heapRel == NULL || heapoid != IndexGetRelation(indexoid, false)) ereport(ERROR, (errcode(ERRCODE_UNDEFINED_TABLE), - errmsg("could not open parent table of index %s", + errmsg("could not open parent table of index \"%s\"", RelationGetRelationName(indexRel)))); /* the revmap does the hard work */ diff --git a/src/backend/access/index/indexam.c b/src/backend/access/index/indexam.c index 9b5afa12ad6..5e22479b7ad 100644 --- a/src/backend/access/index/indexam.c +++ b/src/backend/access/index/indexam.c @@ -93,14 +93,14 @@ #define CHECK_REL_PROCEDURE(pname) \ do { \ if (indexRelation->rd_indam->pname == NULL) \ - elog(ERROR, "function %s is not defined for index %s", \ + elog(ERROR, "function \"%s\" is not defined for index \"%s\"", \ CppAsString(pname), RelationGetRelationName(indexRelation)); \ } while(0) #define CHECK_SCAN_PROCEDURE(pname) \ do { \ if (scan->indexRelation->rd_indam->pname == NULL) \ - elog(ERROR, "function %s is not defined for index %s", \ + elog(ERROR, "function \"%s\" is not defined for index \"%s\"", \ CppAsString(pname), RelationGetRelationName(scan->indexRelation)); \ } while(0) |