Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
07e5e667
Commit
07e5e667
authored
Apr 14, 2021
by
Peter Eisentraut
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve quoting in some error messages
parent
ac725ee0
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
7 deletions
+7
-7
contrib/amcheck/verify_nbtree.c
contrib/amcheck/verify_nbtree.c
+3
-3
src/backend/access/brin/brin.c
src/backend/access/brin/brin.c
+2
-2
src/backend/access/index/indexam.c
src/backend/access/index/indexam.c
+2
-2
No files found.
contrib/amcheck/verify_nbtree.c
View file @
07e5e667
...
...
@@ -290,7 +290,7 @@ bt_index_check_internal(Oid indrelid, bool parentcheck, bool heapallindexed,
if
(
heaprel
==
NULL
||
heapid
!=
IndexGetRelation
(
indrelid
,
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
(
indrel
))));
/* Relation suitable for checking as B-Tree? */
...
...
@@ -535,7 +535,7 @@ bt_check_every_level(Relation rel, Relation heaprel, bool heapkeyspace,
if
(
metad
->
btm_fastroot
!=
metad
->
btm_root
)
ereport
(
DEBUG1
,
(
errcode
(
ERRCODE_NO_DATA
),
errmsg_internal
(
"harmless fast root mismatch in index
%s
"
,
errmsg_internal
(
"harmless fast root mismatch in index
\"
%s
\"
"
,
RelationGetRelationName
(
rel
)),
errdetail_internal
(
"Fast root block %u (level %u) differs from true root block %u (level %u)."
,
metad
->
btm_fastroot
,
metad
->
btm_fastlevel
,
...
...
@@ -2277,7 +2277,7 @@ bt_downlink_missing_check(BtreeCheckState *state, bool rightsplit,
{
ereport
(
DEBUG1
,
(
errcode
(
ERRCODE_NO_DATA
),
errmsg_internal
(
"harmless interrupted page split detected in index
%s
"
,
errmsg_internal
(
"harmless interrupted page split detected in index
\"
%s
\"
"
,
RelationGetRelationName
(
state
->
rel
)),
errdetail_internal
(
"Block=%u level=%u left sibling=%u page lsn=%X/%X."
,
blkno
,
opaque
->
btpo_level
,
...
...
src/backend/access/brin/brin.c
View file @
07e5e667
...
...
@@ -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 */
...
...
src/backend/access/index/indexam.c
View file @
07e5e667
...
...
@@ -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)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment