OSDN Git Service
(root)
/
pghintplan
/
pg_hint_plan.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix SEGV caused by duplicate memoize hints
[pghintplan/pg_hint_plan.git]
/
pg_hint_plan.c
diff --git
a/pg_hint_plan.c
b/pg_hint_plan.c
index
8534cea
..
2dca0b3
100644
(file)
--- a/
pg_hint_plan.c
+++ b/
pg_hint_plan.c
@@
-216,9
+216,13
@@
static const char *HintTypeName[] = {
"leading",
"set",
"rows",
- "parallel"
+ "parallel",
+ "memoize"
};
+StaticAssertDecl(sizeof(HintTypeName) / sizeof(char *) == NUM_HINT_TYPE,
+ "HintTypeName and HintType don't match");
+
/* hint status */
typedef enum HintStatus
{