]> granicus.if.org Git - postgresql/commit
Prevent to use magic constants
authorTeodor Sigaev <teodor@sigaev.ru>
Thu, 28 Apr 2016 13:39:25 +0000 (16:39 +0300)
committerTeodor Sigaev <teodor@sigaev.ru>
Thu, 28 Apr 2016 13:39:25 +0000 (16:39 +0300)
commitf8467f7da8685dbc47187864e5afe130d9c63fff
tree976dd6c7449fd96d07d0e17661a4d561fc0ab8af
parente2c79e14d998cd31f860854bc9210b37b457bb01
Prevent to use magic constants

Use macroses for definition amstrategies/amsupport fields instead of
hardcoded values.

Author: Nikolay Shaplov with addition for contrib/bloom
contrib/bloom/blutils.c
src/backend/access/gin/ginutil.c
src/backend/access/gist/gist.c
src/backend/access/hash/hash.c
src/backend/access/nbtree/nbtree.c
src/backend/access/spgist/spgutils.c
src/include/access/hash.h
src/include/access/nbtree.h