mirror of
https://github.com/postgres/postgres.git
synced 2025-08-19 23:22:23 +03:00
Prevent to use magic constants
Use macroses for definition amstrategies/amsupport fields instead of hardcoded values. Author: Nikolay Shaplov with addition for contrib/bloom
This commit is contained in:
@@ -84,8 +84,8 @@ bthandler(PG_FUNCTION_ARGS)
|
||||
{
|
||||
IndexAmRoutine *amroutine = makeNode(IndexAmRoutine);
|
||||
|
||||
amroutine->amstrategies = 5;
|
||||
amroutine->amsupport = 2;
|
||||
amroutine->amstrategies = BTMaxStrategyNumber;
|
||||
amroutine->amsupport = BTNProcs;
|
||||
amroutine->amcanorder = true;
|
||||
amroutine->amcanorderbyop = false;
|
||||
amroutine->amcanbackward = true;
|
||||
|
Reference in New Issue
Block a user