git.postgresql.org Git - postgresql.git/commitdiff

git projects / postgresql.git / commitdiff
? search:
summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 34fd62c)
Remove _PAGE_SIZE_ as recommended by Darren King.
Sun, 2 Mar 1997 01:34:50 +0000 (01:34 +0000)
Sun, 2 Mar 1997 01:34:50 +0000 (01:34 +0000)

diff --git a/src/backend/utils/adt/chunk.c b/src/backend/utils/adt/chunk.c
index f8f64a82311c29ad879cecccdf57007e30883983..91773a8a7d562dbc36d23b5c5fd005c344312b42 100644 (file)
--- 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 d74a35d27e4f0a1f3023e453472c46e78dae9506..09a7c0a377b68342970bf4fdc8a58ff623d6c641 100644 (file)
--- 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) */
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /