summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Momjian1997-03-02 01:34:50 +0000
committerBruce Momjian1997-03-02 01:34:50 +0000
commit162c2a6e4cca5b0fdff4027abf00633ebbdb3947 (patch)
tree6dbd75f60e8a10eb6998c3ce609911cfc9232557
parent34fd62c51201cb829e78ae4e84cfd0aa42e45758 (diff)
Remove _PAGE_SIZE_ as recommended by Darren King.
-rw-r--r--src/backend/utils/adt/chunk.c6
-rw-r--r--src/include/optimizer/internal.h3
2 files changed, 4 insertions, 5 deletions
diff --git a/src/backend/utils/adt/chunk.c b/src/backend/utils/adt/chunk.c
index f8f64a8231..91773a8a7d 100644
--- a/src/backend/utils/adt/chunk.c
+++ b/src/backend/utils/adt/chunk.c
@@ -6,7 +6,7 @@
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/utils/adt/Attic/chunk.c,v 1.4 1996/11/08 05:59:40 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/utils/adt/Attic/chunk.c,v 1.5 1997/03/02 01:34:37 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -147,7 +147,7 @@ GetChunkSize(FILE *fd,
for (j = 0, dmax[i] = 1; j < N; j++)
if (dmax[i] < A[j][i])
dmax[i] = A[j][i];
- csize = _PAGE_SIZE_/baseSize;
+ csize = BLCKSZ/baseSize;
_FindBestChunk (csize, dmax, d, ndim, A, N);
@@ -242,7 +242,7 @@ get_next(int d[], int k, int C, int dmax[])
}
#ifdef LOARRAY
-static char a_chunk[_PAGE_SIZE_ + 4]; /* 4 since a_chunk is in
+static char a_chunk[BLCKSZ + 4]; /* 4 since a_chunk is in
varlena format */
#endif
diff --git a/src/include/optimizer/internal.h b/src/include/optimizer/internal.h
index d74a35d27e..09a7c0a377 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.2 1996/11/06 10:30:18 scrappy Exp $
+ * $Id: internal.h,v 1.3 1997/03/02 01:34:50 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -28,7 +28,6 @@
*
*/
#define _CPU_PAGE_WEIGHT_ 0.065 /* CPU-to-page cost weighting factor */
-#define _PAGE_SIZE_ 8192 /* BLCKSZ (from ../h/bufmgr.h) */
#define _MAX_KEYS_ INDEX_MAX_KEYS /* maximum number of keys in an index */
#define _TID_SIZE_ 6 /* sizeof(itemid) (from ../h/itemid.h) */