mirror of
https://github.com/postgres/postgres.git
synced 2025-07-30 11:03:19 +03:00
Improve quoting in some error messages
This commit is contained in:
@ -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 */
|
||||
|
@ -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)
|
||||
|
||||
|
Reference in New Issue
Block a user