Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
162c2a6e
Commit
162c2a6e
authored
Mar 02, 1997
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove _PAGE_SIZE_ as recommended by Darren King.
parent
34fd62c5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
5 deletions
+4
-5
src/backend/utils/adt/chunk.c
src/backend/utils/adt/chunk.c
+3
-3
src/include/optimizer/internal.h
src/include/optimizer/internal.h
+1
-2
No files found.
src/backend/utils/adt/chunk.c
View file @
162c2a6e
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
*
*
*
*
* IDENTIFICATION
* 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,
...
@@ -147,7 +147,7 @@ GetChunkSize(FILE *fd,
for
(
j
=
0
,
dmax
[
i
]
=
1
;
j
<
N
;
j
++
)
for
(
j
=
0
,
dmax
[
i
]
=
1
;
j
<
N
;
j
++
)
if
(
dmax
[
i
]
<
A
[
j
][
i
])
if
(
dmax
[
i
]
<
A
[
j
][
i
])
dmax
[
i
]
=
A
[
j
][
i
];
dmax
[
i
]
=
A
[
j
][
i
];
csize
=
_PAGE_SIZE_
/
baseSize
;
csize
=
BLCKSZ
/
baseSize
;
_FindBestChunk
(
csize
,
dmax
,
d
,
ndim
,
A
,
N
);
_FindBestChunk
(
csize
,
dmax
,
d
,
ndim
,
A
,
N
);
...
@@ -242,7 +242,7 @@ get_next(int d[], int k, int C, int dmax[])
...
@@ -242,7 +242,7 @@ get_next(int d[], int k, int C, int dmax[])
}
}
#ifdef LOARRAY
#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 */
varlena format */
#endif
#endif
...
...
src/include/optimizer/internal.h
View file @
162c2a6e
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
*
*
* Copyright (c) 1994, Regents of the University of California
* 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 @@
...
@@ -28,7 +28,6 @@
*
*
*/
*/
#define _CPU_PAGE_WEIGHT_ 0.065
/* CPU-to-page cost weighting factor */
#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 _MAX_KEYS_ INDEX_MAX_KEYS
/* maximum number of keys in an index */
#define _TID_SIZE_ 6
/* sizeof(itemid) (from ../h/itemid.h) */
#define _TID_SIZE_ 6
/* sizeof(itemid) (from ../h/itemid.h) */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment