summaryrefslogtreecommitdiff
path: root/src/include/optimizer
diff options
context:
space:
mode:
authorPeter Eisentraut <peter_e@gmx.net>2006-07-26 11:35:56 +0000
committerPeter Eisentraut <peter_e@gmx.net>2006-07-26 11:35:56 +0000
commit79bc99a46703dc07636f4c9f09067f87b324c6b4 (patch)
treef59e44dc91563cd4be2efbb8a5cde3b7f3c64360 /src/include/optimizer
parent0c57c832b950192405004021c618315bbe786ddf (diff)
downloadpostgresql-79bc99a46703dc07636f4c9f09067f87b324c6b4.tar.gz
Convert effective_cache_size to an integer, for better integration with
upcoming units feature.
Diffstat (limited to 'src/include/optimizer')
-rw-r--r--src/include/optimizer/cost.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/include/optimizer/cost.h b/src/include/optimizer/cost.h
index fe8f7097e4..27928b89a5 100644
--- a/src/include/optimizer/cost.h
+++ b/src/include/optimizer/cost.h
@@ -7,7 +7,7 @@
* Portions Copyright (c) 1996-2006, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $PostgreSQL: pgsql/src/include/optimizer/cost.h,v 1.77 2006/07/22 15:41:56 tgl Exp $
+ * $PostgreSQL: pgsql/src/include/optimizer/cost.h,v 1.78 2006/07/26 11:35:56 petere Exp $
*
*-------------------------------------------------------------------------
*/
@@ -27,7 +27,7 @@
#define DEFAULT_CPU_INDEX_TUPLE_COST 0.005
#define DEFAULT_CPU_OPERATOR_COST 0.0025
-#define DEFAULT_EFFECTIVE_CACHE_SIZE 1000.0 /* measured in pages */
+#define DEFAULT_EFFECTIVE_CACHE_SIZE 1000 /* measured in pages */
/*
@@ -41,7 +41,7 @@ extern DLLIMPORT double random_page_cost;
extern DLLIMPORT double cpu_tuple_cost;
extern DLLIMPORT double cpu_index_tuple_cost;
extern DLLIMPORT double cpu_operator_cost;
-extern DLLIMPORT double effective_cache_size;
+extern DLLIMPORT int effective_cache_size;
extern Cost disable_cost;
extern bool enable_seqscan;
extern bool enable_indexscan;