| From: | Teodor Sigaev <teodor(at)sigaev(dot)ru> |
|---|---|
| To: | pgsql-committers(at)postgresql(dot)org |
| Subject: | pgsql: Prevent to use magic constants |
| Date: | 2016-04-28 13:39:46 |
| Message-ID: | E1avmAU-0005m1-47@gemulon.postgresql.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-committers |
Prevent to use magic constants
Use macroses for definition amstrategies/amsupport fields instead of
hardcoded values.
Author: Nikolay Shaplov with addition for contrib/bloom
Branch
------
master
Details
-------
http://git.postgresql.org/pg/commitdiff/f8467f7da8685dbc47187864e5afe130d9c63fff
Modified Files
--------------
contrib/bloom/blutils.c | 4 ++--
src/backend/access/gin/ginutil.c | 2 +-
src/backend/access/gist/gist.c | 2 +-
src/backend/access/hash/hash.c | 4 ++--
src/backend/access/nbtree/nbtree.c | 4 ++--
src/backend/access/spgist/spgutils.c | 2 +-
src/include/access/hash.h | 1 +
src/include/access/nbtree.h | 1 +
8 files changed, 11 insertions(+), 9 deletions(-)
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Tom Lane | 2016-04-28 15:48:59 | pgsql: Revert "Convert contrib/seg's bool-returning SQL functions to V1 |
| Previous Message | Teodor Sigaev | 2016-04-28 13:22:08 | pgsql: Prevent multiple cleanup process for pending list in GIN. |