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
9f7ac20e
Commit
9f7ac20e
authored
Jul 07, 1999
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleanup of min tuple size.
parent
13910988
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
7 deletions
+9
-7
src/backend/catalog/index.c
src/backend/catalog/index.c
+5
-3
src/backend/optimizer/path/costsize.c
src/backend/optimizer/path/costsize.c
+2
-2
src/include/optimizer/internal.h
src/include/optimizer/internal.h
+2
-2
No files found.
src/backend/catalog/index.c
View file @
9f7ac20e
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/catalog/index.c,v 1.8
0 1999/07/03 00:32:38
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/catalog/index.c,v 1.8
1 1999/07/07 09:27:25
momjian Exp $
*
*
*
*
* INTERFACE ROUTINES
* INTERFACE ROUTINES
...
@@ -57,8 +57,10 @@
...
@@ -57,8 +57,10 @@
/*
/*
* macros used in guessing how many tuples are on a page.
* macros used in guessing how many tuples are on a page.
*/
*/
#define AVG_TUPLE_SIZE MinTupleSize
#define AVG_ATTR_SIZE 8
#define NTUPLES_PER_PAGE(natts) (BLCKSZ/((natts)*AVG_TUPLE_SIZE))
#define NTUPLES_PER_PAGE(natts) \
((BLCKSZ - MAXALIGN(sizeof (PageHeaderData))) / \
((natts) * AVG_ATTR_SIZE + MAXALIGN(sizeof(HeapTupleHeaderData))))
/* non-export function prototypes */
/* non-export function prototypes */
static
Oid
GetHeapRelationOid
(
char
*
heapRelationName
,
char
*
indexRelationName
,
static
Oid
GetHeapRelationOid
(
char
*
heapRelationName
,
char
*
indexRelationName
,
...
...
src/backend/optimizer/path/costsize.c
View file @
9f7ac20e
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/optimizer/path/costsize.c,v 1.
39 1999/07/07 09:11:15
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/optimizer/path/costsize.c,v 1.
40 1999/07/07 09:27:26
momjian Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -51,7 +51,7 @@ bool _enable_nestloop_ = true;
...
@@ -51,7 +51,7 @@ bool _enable_nestloop_ = true;
bool
_enable_mergejoin_
=
true
;
bool
_enable_mergejoin_
=
true
;
bool
_enable_hashjoin_
=
true
;
bool
_enable_hashjoin_
=
true
;
Cost
_cpu_page_weight_
=
_CPU_PAGE_WEIGHT_
;
Cost
_cpu_page_weight_
=
_CPU_PAGE_WEIGHT_
;
Cost
_cpu_index_page_wight_
=
_CPU_INDEX_PAGE_WEIGHT_
;
Cost
_cpu_index_page_wight_
=
_CPU_INDEX_PAGE_WEIGHT_
;
/*
/*
...
...
src/include/optimizer/internal.h
View file @
9f7ac20e
...
@@ -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
0 1999/05/25 16:14:1
8 momjian Exp $
* $Id: internal.h,v 1.2
1 1999/07/07 09:27:2
8 momjian Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -27,7 +27,7 @@
...
@@ -27,7 +27,7 @@
* System-dependent tuning constants
* System-dependent tuning constants
*
*
*/
*/
#define _CPU_PAGE_WEIGHT_ 0.033
/* CPU-heap-to-page cost weighting factor */
#define _CPU_PAGE_WEIGHT_ 0.033
/* CPU-heap-to-page cost weighting factor */
#define _CPU_INDEX_PAGE_WEIGHT_ 0.017
/* CPU-index-to-page cost
#define _CPU_INDEX_PAGE_WEIGHT_ 0.017
/* CPU-index-to-page cost
* weighting factor */
* weighting factor */
#define _MAX_KEYS_ INDEX_MAX_KEYS
/* maximum number of keys in an
#define _MAX_KEYS_ INDEX_MAX_KEYS
/* maximum number of keys in an
...
...
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