Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
ebe4375f
Commit
ebe4375f
authored
Jun 21, 2002
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Document problems with hash indexes compared to btree.
parent
db650b45
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
12 deletions
+14
-12
doc/src/sgml/indices.sgml
doc/src/sgml/indices.sgml
+4
-7
doc/src/sgml/ref/create_index.sgml
doc/src/sgml/ref/create_index.sgml
+6
-1
doc/src/sgml/xindex.sgml
doc/src/sgml/xindex.sgml
+4
-4
No files found.
doc/src/sgml/indices.sgml
View file @
ebe4375f
<!-- $Header: /cvsroot/pgsql/doc/src/sgml/indices.sgml,v 1.3
1 2002/01/07 02:29:12 petere
Exp $ -->
<!-- $Header: /cvsroot/pgsql/doc/src/sgml/indices.sgml,v 1.3
2 2002/06/21 03:25:53 momjian
Exp $ -->
<chapter id="indexes">
<title id="indexes-title">Indexes</title>
...
...
@@ -181,12 +181,9 @@ CREATE INDEX <replaceable>name</replaceable> ON <replaceable>table</replaceable>
</synopsis>
<note>
<para>
Because of the limited utility of hash indexes, a B-tree index
should generally be preferred over a hash index. We do not have
sufficient evidence that hash indexes are actually faster than
B-trees even for <literal>=</literal> comparisons. Moreover,
hash indexes require coarser locks; see <xref
linkend="locking-indexes">.
Testing has shown that hash indexes are slower than btree indexes,
and the size and build time for hash indexes is much worse. For
these reasons, hash index use is discouraged.
</para>
</note>
</para>
...
...
doc/src/sgml/ref/create_index.sgml
View file @
ebe4375f
<!--
$Header: /cvsroot/pgsql/doc/src/sgml/ref/create_index.sgml,v 1.3
1 2002/05/18 15:44:47 petere
Exp $
$Header: /cvsroot/pgsql/doc/src/sgml/ref/create_index.sgml,v 1.3
2 2002/06/21 03:25:53 momjian
Exp $
PostgreSQL documentation
-->
...
...
@@ -329,6 +329,11 @@ ERROR: Cannot create index: 'index_name' already exists.
an indexed attribute is involved in a comparison using
the <literal>=</literal> operator.
</para>
<para>
Testing has shown that hash indexes are slower than btree indexes,
and the size and build time for hash indexes is much worse. For
these reasons, hash index use is discouraged.
</para>
<para>
Currently, only the B-tree and gist access methods support multicolumn
...
...
doc/src/sgml/xindex.sgml
View file @
ebe4375f
<!--
$Header: /cvsroot/pgsql/doc/src/sgml/xindex.sgml,v 1.2
5 2002/05/29 17:36:40 tgl
Exp $
$Header: /cvsroot/pgsql/doc/src/sgml/xindex.sgml,v 1.2
6 2002/06/21 03:25:53 momjian
Exp $
PostgreSQL documentation
-->
...
...
@@ -11,9 +11,9 @@ PostgreSQL documentation
<para>
The procedures described thus far let you define new types, new
functions, and new operators.
However, we cannot yet define a secondary
index (such as a B-tree, R-tree, or
hash access method)
over a new type or its operators.
functions, and new operators.
However, we cannot yet define a
secondary index (such as a B-tree, R-tree, or hash access method)
over a new type or its operators.
</para>
<para>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment