Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
postgres-lambda-diff
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jakob Huber
postgres-lambda-diff
Commits
679f2ca2
Commit
679f2ca2
authored
12 years ago
by
Simon Riggs
Browse files
Options
Downloads
Patches
Plain Diff
Clarify hash index caution and copy to CREATE INDEX docs
parent
54037476
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
doc/src/sgml/indices.sgml
+4
-2
4 additions, 2 deletions
doc/src/sgml/indices.sgml
doc/src/sgml/ref/create_index.sgml
+12
-0
12 additions, 0 deletions
doc/src/sgml/ref/create_index.sgml
with
16 additions
and
2 deletions
doc/src/sgml/indices.sgml
+
4
−
2
View file @
679f2ca2
...
@@ -196,8 +196,10 @@ CREATE INDEX <replaceable>name</replaceable> ON <replaceable>table</replaceable>
...
@@ -196,8 +196,10 @@ CREATE INDEX <replaceable>name</replaceable> ON <replaceable>table</replaceable>
<para>
<para>
Hash index operations are not presently WAL-logged,
Hash index operations are not presently WAL-logged,
so hash indexes might need to be rebuilt with <command>REINDEX</>
so hash indexes might need to be rebuilt with <command>REINDEX</>
after a database crash. They are also not replicated over streaming or
after a database crash if there were unwritten changes.
file-based replication.
Also, changes to hash indexes are not replicated over streaming or
file-based 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.
For these reasons, hash index use is presently discouraged.
</para>
</para>
</caution>
</caution>
...
...
This diff is collapsed.
Click to expand it.
doc/src/sgml/ref/create_index.sgml
+
12
−
0
View file @
679f2ca2
...
@@ -466,6 +466,18 @@ Indexes:
...
@@ -466,6 +466,18 @@ Indexes:
they can be useful.
they can be useful.
</para>
</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 streaming or
file-based 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>
<para>
Currently, only the B-tree, GiST and GIN index methods support
Currently, only the B-tree, GiST and GIN index methods support
multicolumn indexes. Up to 32 fields can be specified by default.
multicolumn indexes. Up to 32 fields can be specified by default.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment