]> granicus.if.org Git - postgresql/commitdiff
Add hash index caution to CREATE INDEX docs
authorSimon Riggs <simon@2ndQuadrant.com>
Wed, 17 Oct 2012 07:36:45 +0000 (08:36 +0100)
committerSimon Riggs <simon@2ndQuadrant.com>
Wed, 17 Oct 2012 07:36:45 +0000 (08:36 +0100)
doc/src/sgml/ref/create_index.sgml

index 7686700d78d696990acc142e09fcfa16a3f1e064..81e927c05a99a4bc6827f33ebf4552ae51968302 100644 (file)
@@ -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>