Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit07e5e66

Browse files
committed
Improve quoting in some error messages
1 parentac725ee commit07e5e66

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

‎contrib/amcheck/verify_nbtree.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ bt_index_check_internal(Oid indrelid, bool parentcheck, bool heapallindexed,
290290
if (heaprel==NULL||heapid!=IndexGetRelation(indrelid, false))
291291
ereport(ERROR,
292292
(errcode(ERRCODE_UNDEFINED_TABLE),
293-
errmsg("could not open parent table of index%s",
293+
errmsg("could not open parent table of index\"%s\"",
294294
RelationGetRelationName(indrel))));
295295

296296
/* Relation suitable for checking as B-Tree? */
@@ -535,7 +535,7 @@ bt_check_every_level(Relation rel, Relation heaprel, bool heapkeyspace,
535535
if (metad->btm_fastroot!=metad->btm_root)
536536
ereport(DEBUG1,
537537
(errcode(ERRCODE_NO_DATA),
538-
errmsg_internal("harmless fast root mismatch in index%s",
538+
errmsg_internal("harmless fast root mismatch in index\"%s\"",
539539
RelationGetRelationName(rel)),
540540
errdetail_internal("Fast root block %u (level %u) differs from true root block %u (level %u).",
541541
metad->btm_fastroot,metad->btm_fastlevel,
@@ -2277,7 +2277,7 @@ bt_downlink_missing_check(BtreeCheckState *state, bool rightsplit,
22772277
{
22782278
ereport(DEBUG1,
22792279
(errcode(ERRCODE_NO_DATA),
2280-
errmsg_internal("harmless interrupted page split detected in index%s",
2280+
errmsg_internal("harmless interrupted page split detected in index\"%s\"",
22812281
RelationGetRelationName(state->rel)),
22822282
errdetail_internal("Block=%u level=%u left sibling=%u page lsn=%X/%X.",
22832283
blkno,opaque->btpo_level,

‎src/backend/access/brin/brin.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1060,7 +1060,7 @@ brin_summarize_range(PG_FUNCTION_ARGS)
10601060
if (heapRel==NULL||heapoid!=IndexGetRelation(indexoid, false))
10611061
ereport(ERROR,
10621062
(errcode(ERRCODE_UNDEFINED_TABLE),
1063-
errmsg("could not open parent table of index%s",
1063+
errmsg("could not open parent table of index\"%s\"",
10641064
RelationGetRelationName(indexRel))));
10651065

10661066
/* OK, do it */
@@ -1137,7 +1137,7 @@ brin_desummarize_range(PG_FUNCTION_ARGS)
11371137
if (heapRel==NULL||heapoid!=IndexGetRelation(indexoid, false))
11381138
ereport(ERROR,
11391139
(errcode(ERRCODE_UNDEFINED_TABLE),
1140-
errmsg("could not open parent table of index%s",
1140+
errmsg("could not open parent table of index\"%s\"",
11411141
RelationGetRelationName(indexRel))));
11421142

11431143
/* the revmap does the hard work */

‎src/backend/access/index/indexam.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,14 +93,14 @@
9393
#defineCHECK_REL_PROCEDURE(pname) \
9494
do { \
9595
if (indexRelation->rd_indam->pname == NULL) \
96-
elog(ERROR, "function%s is not defined for index%s", \
96+
elog(ERROR, "function\"%s\" is not defined for index\"%s\"", \
9797
CppAsString(pname), RelationGetRelationName(indexRelation)); \
9898
} while(0)
9999

100100
#defineCHECK_SCAN_PROCEDURE(pname) \
101101
do { \
102102
if (scan->indexRelation->rd_indam->pname == NULL) \
103-
elog(ERROR, "function%s is not defined for index%s", \
103+
elog(ERROR, "function\"%s\" is not defined for index\"%s\"", \
104104
CppAsString(pname), RelationGetRelationName(scan->indexRelation)); \
105105
} while(0)
106106

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp