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
0f8fc35a
Commit
0f8fc35a
authored
Sep 25, 2006
by
Tom Lane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Increase default value of effective_cache_size to 128MB, per discussion.
parent
ffae5cc5
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
8 deletions
+8
-8
doc/src/sgml/config.sgml
doc/src/sgml/config.sgml
+5
-5
src/backend/utils/misc/postgresql.conf.sample
src/backend/utils/misc/postgresql.conf.sample
+1
-1
src/include/optimizer/cost.h
src/include/optimizer/cost.h
+2
-2
No files found.
doc/src/sgml/config.sgml
View file @
0f8fc35a
<!-- $PostgreSQL: pgsql/doc/src/sgml/config.sgml,v 1.8
8 2006/09/18 12:11:36 teodor
Exp $ -->
<!-- $PostgreSQL: pgsql/doc/src/sgml/config.sgml,v 1.8
9 2006/09/25 22:12:24 tgl
Exp $ -->
<chapter Id="runtime-config">
<chapter Id="runtime-config">
<title>Server Configuration</title>
<title>Server Configuration</title>
...
@@ -1905,7 +1905,7 @@ archive_command = 'copy "%p" /mnt/server/archivedir/"%f"' # Windows
...
@@ -1905,7 +1905,7 @@ archive_command = 'copy "%p" /mnt/server/archivedir/"%f"' # Windows
<listitem>
<listitem>
<para>
<para>
Sets the planner's assumption about the effective size of the
Sets the planner's assumption about the effective size of the
disk cache that is available to a single
index scan
. This is
disk cache that is available to a single
query
. This is
factored into estimates of the cost of using an index; a
factored into estimates of the cost of using an index; a
higher value makes it more likely index scans will be used, a
higher value makes it more likely index scans will be used, a
lower value makes it more likely sequential scans will be
lower value makes it more likely sequential scans will be
...
@@ -1913,13 +1913,13 @@ archive_command = 'copy "%p" /mnt/server/archivedir/"%f"' # Windows
...
@@ -1913,13 +1913,13 @@ archive_command = 'copy "%p" /mnt/server/archivedir/"%f"' # Windows
<productname>PostgreSQL</productname>'s shared buffers and the
<productname>PostgreSQL</productname>'s shared buffers and the
portion of the kernel's disk cache that will be used for
portion of the kernel's disk cache that will be used for
<productname>PostgreSQL</productname> data files. Also, take
<productname>PostgreSQL</productname> data files. Also, take
into account the expected number of concurrent queries
using
into account the expected number of concurrent queries
on different
different index
es, since they will have to share the available
tabl
es, since they will have to share the available
space. This parameter has no effect on the size of shared
space. This parameter has no effect on the size of shared
memory allocated by <productname>PostgreSQL</productname>, nor
memory allocated by <productname>PostgreSQL</productname>, nor
does it reserve kernel disk cache; it is used only for
does it reserve kernel disk cache; it is used only for
estimation purposes. The value is measured in disk pages,
estimation purposes. The value is measured in disk pages,
which are normally 8192 bytes each. The default is 1
000
.
which are normally 8192 bytes each. The default is 1
6384 (128 MB)
.
</para>
</para>
</listitem>
</listitem>
</varlistentry>
</varlistentry>
...
...
src/backend/utils/misc/postgresql.conf.sample
View file @
0f8fc35a
...
@@ -195,7 +195,7 @@
...
@@ -195,7 +195,7 @@
#cpu_tuple_cost = 0.01 # same scale as above
#cpu_tuple_cost = 0.01 # same scale as above
#cpu_index_tuple_cost = 0.005 # same scale as above
#cpu_index_tuple_cost = 0.005 # same scale as above
#cpu_operator_cost = 0.0025 # same scale as above
#cpu_operator_cost = 0.0025 # same scale as above
#effective_cache_size =
8000k
B
#effective_cache_size =
128M
B
# - Genetic Query Optimizer -
# - Genetic Query Optimizer -
...
...
src/include/optimizer/cost.h
View file @
0f8fc35a
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
* Portions Copyright (c) 1996-2006, PostgreSQL Global Development Group
* Portions Copyright (c) 1996-2006, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
* Portions Copyright (c) 1994, Regents of the University of California
*
*
* $PostgreSQL: pgsql/src/include/optimizer/cost.h,v 1.8
0 2006/09/19 22:49:53
tgl Exp $
* $PostgreSQL: pgsql/src/include/optimizer/cost.h,v 1.8
1 2006/09/25 22:12:24
tgl Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -27,7 +27,7 @@
...
@@ -27,7 +27,7 @@
#define DEFAULT_CPU_INDEX_TUPLE_COST 0.005
#define DEFAULT_CPU_INDEX_TUPLE_COST 0.005
#define DEFAULT_CPU_OPERATOR_COST 0.0025
#define DEFAULT_CPU_OPERATOR_COST 0.0025
#define DEFAULT_EFFECTIVE_CACHE_SIZE 1
000
/* measured in pages */
#define DEFAULT_EFFECTIVE_CACHE_SIZE 1
6384
/* measured in pages */
/*
/*
...
...
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