]> granicus.if.org Git - postgis/commitdiff
Added a note about tweeking random_page_cost
authorSandro Santilli <strk@keybit.net>
Tue, 14 Sep 2004 12:23:27 +0000 (12:23 +0000)
committerSandro Santilli <strk@keybit.net>
Tue, 14 Sep 2004 12:23:27 +0000 (12:23 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@819 b70326c6-7e19-0410-871a-916f4a2858ee

doc/postgis.xml

index 362b4337587a477a86dc2164690f668ffd132670..31147f6d2fb8b68f03a847d40d91bf5bd4f34516 100644 (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>