postgres.git / summary / log / commit / refs
commit 6166c7301ed9286c1e2af2f83a39e8b8225338bf
Author: Simon Riggs <simon@2ndQuadrant.com>
Date: Wed Oct 17 07:36:45 2012 +0000
First released in: 8.3.22, 8.4.15
Add hash index caution to CREATE INDEX docs
doc/src/sgml/ref/create_index.sgml | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/doc/src/sgml/ref/create_index.sgml b/doc/src/sgml/ref/create_index.sgml
index 7686700d78d..81e927c05a9 100644
--- a/doc/src/sgml/ref/create_index.sgml
+++ b/doc/src/sgml/ref/create_index.sgml
@@ -467,6 +467,18 @@ CREATE INDEX lower_title_idx ON films ((lower(title)));
</programlisting>
</para>
+ <caution>
+ <para>
+ Hash index operations are not presently WAL-logged,
+ so hash indexes might need to be rebuilt with <command>REINDEX</>
+ after a database crash if there were unwritten changes.
+ Also, changes to hash indexes are not replicated over warm standby
+ replication after the initial base backup, so they
+ give wrong anwers to queries that subsequently use them.
+ For these reasons, hash index use is presently discouraged.
+ </para>
+ </caution>
+
<para>
To create an index with non-default sort ordering of nulls:
<programlisting>
[parent: 17901b013709]