mirror of
https://git.osgeo.org/gitea/postgis/postgis
synced 2024-10-24 09:02:37 +00:00
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:
parent
645d76c39f
commit
d40896fc14
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue