diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 1999-05-16 19:45:37 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 1999-05-16 19:45:37 +0000 |
commit | fecb2b00243521a52461ed60ad5e75e443af5e2f (patch) | |
tree | 54fb0bc967193925aa6e3c885262114cdd89aee1 /src/include/optimizer/internal.h | |
parent | f2ed835baf0f9d4d77df312a58550eb64b63eee7 (diff) |
Minor code cleanup in optimizer.
Diffstat (limited to 'src/include/optimizer/internal.h')
-rw-r--r-- | src/include/optimizer/internal.h | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/src/include/optimizer/internal.h b/src/include/optimizer/internal.h index 24eb5327cb0..0241a3f98f1 100644 --- a/src/include/optimizer/internal.h +++ b/src/include/optimizer/internal.h @@ -6,7 +6,7 @@ * * Copyright (c) 1994, Regents of the University of California * - * $Id: internal.h,v 1.18 1999/03/07 12:00:38 momjian Exp $ + * $Id: internal.h,v 1.19 1999/05/16 19:45:36 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -27,7 +27,7 @@ * System-dependent tuning constants * */ -#define _CPU_PAGE_WEIGHT_ 0.033/* CPU-heap-to-page cost weighting factor */ +#define _CPU_PAGE_WEIGHT_ 0.033 /* CPU-heap-to-page cost weighting factor */ #define _CPU_INDEX_PAGE_WEIGHT_ 0.017 /* CPU-index-to-page cost * weighting factor */ #define _MAX_KEYS_ INDEX_MAX_KEYS /* maximum number of keys in an @@ -64,7 +64,7 @@ /* Identifier for invalid relation OIDs and attribute numbers for use by * selectivity functions */ -#define _SELEC_VALUE_UNKNOWN_ -1 +#define _SELEC_VALUE_UNKNOWN_ (-1) /* Flag indicating that a clause constant is really a parameter (or other * non-constant?), a non-parameter, or a constant on the right side @@ -75,11 +75,6 @@ #define _SELEC_CONSTANT_LEFT_ 0 #define _SELEC_CONSTANT_RIGHT_ 2 -#define TOLERANCE 0.000001 - -#define FLOAT_EQUAL(X,Y) ((X) - (Y) < TOLERANCE) -#define FLOAT_IS_ZERO(X) (FLOAT_EQUAL(X,0.0)) - /* #define deactivate_joininfo(joininfo) joininfo->inactive=true*/ /*#define joininfo_inactive(joininfo) joininfo->inactive */ |