Commit f21fb30d authored by Bruce Momjian's avatar Bruce Momjian

Revert optimizer page count change.

parent bd175cc9
<!-- <!--
$Header: /cvsroot/pgsql/doc/src/sgml/perform.sgml,v 1.25 2003/01/27 22:40:56 momjian Exp $ $Header: /cvsroot/pgsql/doc/src/sgml/perform.sgml,v 1.26 2003/01/28 03:34:29 momjian Exp $
--> -->
<chapter id="performance-tips"> <chapter id="performance-tips">
...@@ -109,8 +109,8 @@ regression=# EXPLAIN SELECT * FROM tenk1; ...@@ -109,8 +109,8 @@ regression=# EXPLAIN SELECT * FROM tenk1;
SELECT * FROM pg_class WHERE relname = 'tenk1'; SELECT * FROM pg_class WHERE relname = 'tenk1';
</programlisting> </programlisting>
you will find out that <classname>tenk1</classname> has 333 disk you will find out that <classname>tenk1</classname> has 233 disk
pages and 10000 rows. So the cost is estimated at 333 page pages and 10000 rows. So the cost is estimated at 233 page
reads, defined as costing 1.0 apiece, plus 10000 * <varname>cpu_tuple_cost</varname> which is reads, defined as costing 1.0 apiece, plus 10000 * <varname>cpu_tuple_cost</varname> which is
currently 0.01 (try <command>SHOW cpu_tuple_cost</command>). currently 0.01 (try <command>SHOW cpu_tuple_cost</command>).
</para> </para>
......
...@@ -121,7 +121,8 @@ ...@@ -121,7 +121,8 @@
# panic # panic
#client_min_messages = notice # Values, in order of decreasing detail: #client_min_messages = notice # Values, in order of decreasing detail:
# debug5, debug4, debug3, debug2, debug1, # debug5, debug4, debug3, debug2, debug1,
# log, info, notice, warning, error # log, info, notice, warning, error,
# panic(off)
#silent_mode = false #silent_mode = false
#log_connections = false #log_connections = false
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment