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:
aab17f8
)
ParseScanMethodをPostgreSQL9.1に対応した。
author
Mitsuru Hasegawa
<hasegawa@metrosystems.co.jp>
Wed, 18 Apr 2012 09:16:16 +0000
(18:16 +0900)
committer
Mitsuru Hasegawa
<hasegawa@metrosystems.co.jp>
Wed, 18 Apr 2012 09:16:16 +0000
(18:16 +0900)
pg_hint_plan.c
patch
|
blob
|
history
diff --git
a/pg_hint_plan.c
b/pg_hint_plan.c
index
409ec6d
..
b398018
100644
(file)
--- a/
pg_hint_plan.c
+++ b/
pg_hint_plan.c
@@
-1033,8
+1033,10
@@
ParseScanMethod(PlanHint *plan, Query *parse, char *keyword, const char *str)
* する。
*/
if (strcmp(keyword, HINT_INDEXSCAN) == 0 ||
- strcmp(keyword, HINT_BITMAPSCAN) == 0 ||
- strcmp(keyword, HINT_INDEXONLYSCAN) == 0)
+#if PG_VERSION_NUM >= 90200
+ strcmp(keyword, HINT_INDEXONLYSCAN) == 0 ||
+#endif
+ strcmp(keyword, HINT_BITMAPSCAN) == 0)
{
skip_space(str);
while (*str != ')' && *str != '\0')