diff options
author | Teodor Sigaev <teodor@sigaev.ru> | 2016-04-28 16:39:25 +0300 |
---|---|---|
committer | Teodor Sigaev <teodor@sigaev.ru> | 2016-04-28 16:39:25 +0300 |
commit | f8467f7da8685dbc47187864e5afe130d9c63fff (patch) | |
tree | 976dd6c7449fd96d07d0e17661a4d561fc0ab8af /src/backend/access/gist/gist.c | |
parent | e2c79e14d998cd31f860854bc9210b37b457bb01 (diff) | |
download | postgresql-f8467f7da8685dbc47187864e5afe130d9c63fff.tar.gz postgresql-f8467f7da8685dbc47187864e5afe130d9c63fff.zip |
Prevent to use magic constants
Use macroses for definition amstrategies/amsupport fields instead of
hardcoded values.
Author: Nikolay Shaplov with addition for contrib/bloom
Diffstat (limited to 'src/backend/access/gist/gist.c')
-rw-r--r-- | src/backend/access/gist/gist.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/access/gist/gist.c b/src/backend/access/gist/gist.c index 996363c2ded..a29088728d2 100644 --- a/src/backend/access/gist/gist.c +++ b/src/backend/access/gist/gist.c @@ -57,7 +57,7 @@ gisthandler(PG_FUNCTION_ARGS) IndexAmRoutine *amroutine = makeNode(IndexAmRoutine); amroutine->amstrategies = 0; - amroutine->amsupport = 9; + amroutine->amsupport = GISTNProcs; amroutine->amcanorder = false; amroutine->amcanorderbyop = true; amroutine->amcanbackward = false; |