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:
c8ff15b
)
変数のスコープが必要最小限の範囲となるように修正した。
author
Mitsuru Hasegawa
<hasegawa@metrosystems.co.jp>
Mon, 28 Jan 2013 08:22:01 +0000
(17:22 +0900)
committer
Mitsuru Hasegawa
<hasegawa@metrosystems.co.jp>
Mon, 28 Jan 2013 08:22:01 +0000
(17:22 +0900)
pg_hint_plan.c
patch
|
blob
|
history
diff --git
a/pg_hint_plan.c
b/pg_hint_plan.c
index
eaea686
..
e1af16d
100644
(file)
--- a/
pg_hint_plan.c
+++ b/
pg_hint_plan.c
@@
-1863,7
+1863,6
@@
delete_indexes(ScanMethodHint *hint, RelOptInfo *rel, Oid relationObjectId)
ListCell *cell;
ListCell *prev;
ListCell *next;
- char *relname = NULL;
StringInfoData buf;
/*
@@
-1928,6
+1927,8
@@
delete_indexes(ScanMethodHint *hint, RelOptInfo *rel, Oid relationObjectId)
if (pg_hint_plan_debug_print)
{
+ char *relname;
+
if (OidIsValid(relationObjectId))
relname = get_rel_name(relationObjectId);
else