Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 162c2a6

Browse files
committed
Remove _PAGE_SIZE_ as recommended by Darren King.
1 parent 34fd62c commit 162c2a6

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

src/backend/utils/adt/chunk.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
*
77
*
88
* IDENTIFICATION
9-
* $Header: /cvsroot/pgsql/src/backend/utils/adt/Attic/chunk.c,v 1.4 1996/11/08 05:59:40 momjian Exp $
9+
* $Header: /cvsroot/pgsql/src/backend/utils/adt/Attic/chunk.c,v 1.5 1997/03/02 01:34:37 momjian Exp $
1010
*
1111
*-------------------------------------------------------------------------
1212
*/
@@ -147,7 +147,7 @@ GetChunkSize(FILE *fd,
147147
for (j = 0, dmax[i] = 1; j < N; j++)
148148
if (dmax[i] < A[j][i])
149149
dmax[i] = A[j][i];
150-
csize = _PAGE_SIZE_/baseSize;
150+
csize = BLCKSZ/baseSize;
151151

152152
_FindBestChunk (csize, dmax, d, ndim, A, N);
153153

@@ -242,7 +242,7 @@ get_next(int d[], int k, int C, int dmax[])
242242
}
243243

244244
#ifdef LOARRAY
245-
static char a_chunk[_PAGE_SIZE_ + 4]; /* 4 since a_chunk is in
245+
static char a_chunk[BLCKSZ + 4]; /* 4 since a_chunk is in
246246
varlena format */
247247
#endif
248248

src/include/optimizer/internal.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
*
77
* Copyright (c) 1994, Regents of the University of California
88
*
9-
* $Id: internal.h,v 1.2 1996/11/06 10:30:18 scrappy Exp $
9+
* $Id: internal.h,v 1.3 1997/03/02 01:34:50 momjian Exp $
1010
*
1111
*-------------------------------------------------------------------------
1212
*/
@@ -28,7 +28,6 @@
2828
*
2929
*/
3030
#define _CPU_PAGE_WEIGHT_ 0.065 /* CPU-to-page cost weighting factor */
31-
#define _PAGE_SIZE_ 8192 /* BLCKSZ (from ../h/bufmgr.h) */
3231
#define _MAX_KEYS_ INDEX_MAX_KEYS /* maximum number of keys in an index */
3332
#define _TID_SIZE_ 6 /* sizeof(itemid) (from ../h/itemid.h) */
3433

0 commit comments

Comments
 (0)