OSDN Git Service
(root)
/
pghintplan
/
pg_hint_plan.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4ffa97e
)
Fix debug level check in restrict_indexes
author
Kyotaro Horiguchi
<horikyota.ntt@gmail.com>
Wed, 19 Jan 2022 05:56:23 +0000
(14:56 +0900)
committer
Kyotaro Horiguchi
<horikyota.ntt@gmail.com>
Wed, 19 Jan 2022 05:56:23 +0000
(14:56 +0900)
The debug logging code blocks in the function are inconsistent about
debug level. Fix the conditions so that they work for the same debug
levels.
pg_hint_plan.c
patch
|
blob
|
history
diff --git
a/pg_hint_plan.c
b/pg_hint_plan.c
index
048e85b
..
6002112
100644
(file)
--- a/
pg_hint_plan.c
+++ b/
pg_hint_plan.c
@@
-3645,7
+3645,7
@@
restrict_indexes(PlannerInfo *root, ScanMethodHint *hint, RelOptInfo *rel,
pfree(indexname);
}
- if (debug_level
== 1
)
+ if (debug_level
> 0
)
{
StringInfoData rel_buf;
char *disprelname = "";