Re: [HACKERS] [PATCH] amroutine->amsupport from numeric to defined constants

2016-04-28 Thread Teodor Sigaev
I think this number should be specified only once, in .h file. Yep, that sounds true. It may be a good idea to make something similar for contrib/bloom if > 0 values are defined for amstrategies or amsupport for consistency. Thank you, pushed. -- Teodor Sigaev

Re: [HACKERS] [PATCH] amroutine->amsupport from numeric to defined constants

2016-04-28 Thread Michael Paquier
On Tue, Apr 26, 2016 at 10:17 PM, Nikolay Shaplov wrote: > While working with postgres code, I found that for gist index number of > amsupport procs are defined two times. First in src/include/access/gist.h > > #define GISTNProcs 9 > > and second in

[HACKERS] [PATCH] amroutine->amsupport from numeric to defined constants

2016-04-26 Thread Nikolay Shaplov
While working with postgres code, I found that for gist index number of amsupport procs are defined two times. First in src/include/access/gist.h #define GISTNProcs 9 and second in src/backend/access/gist/gist.c amroutine->amsupport = 9; I think this number should be