Added a note about tweeking random_page_cost

git-svn-id: http://svn.osgeo.org/postgis/trunk@819 b70326c6-7e19-0410-871a-916f4a2858ee
This commit is contained in:
Sandro Santilli 2004-09-14 12:23:27 +00:00
parent 645d76c39f
commit d40896fc14

View file

@ -1488,6 +1488,16 @@ SELECT UPDATE_GEOMETRY_STATS([table_name], [column_name]);</programlisting></par
<varname>ENABLE_SEQSCAN</varname>.</para>
</note>
</listitem>
<listitem>
<para>If you find the planner wrong about the cost of
sequencial vs index scans try reducing the value of
random_page_cost in postgresql.conf or using SET
random_page_cost=#. Default value for the parameter
is 4, try setting it to 1 or 2. Decrementing the
value makes the planner more inclined of using Index scans.
</para>
</listitem>
</itemizedlist>
</sect2>
</sect1>