Remove _PAGE_SIZE_ as recommended by Darren King.
This commit is contained in:
parent
34fd62c512
commit
162c2a6e4c
|
@ -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
|
||||
|
||||
|
|
|
@ -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) */
|
||||
|
||||
|
|
Loading…
Reference in New Issue