mirror of
https://github.com/postgres/postgres.git
synced 2025-07-28 23:42:10 +03:00
Add hash support functions and hash opclass for contrib/ltree.
This also enables hash join and hash aggregation on ltree columns. Tommy Pavlicek, reviewed by jian he Discussion: https://postgr.es/m/CAEhP-W9ZEoHeaP_nKnPCVd_o1c3BAUvq1gWHrq8EbkNRiS9CvQ@mail.gmail.com
This commit is contained in:
@ -623,6 +623,13 @@ Europe & Russia*@ & !Transportation
|
||||
<literal>>=</literal>, <literal>></literal>
|
||||
</para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para>
|
||||
Hash index over <type>ltree</type>:
|
||||
<literal>=</literal>
|
||||
</para>
|
||||
</listitem>
|
||||
|
||||
<listitem>
|
||||
<para>
|
||||
GiST index over <type>ltree</type> (<literal>gist_ltree_ops</literal>
|
||||
@ -712,6 +719,7 @@ INSERT INTO test VALUES ('Top.Collections.Pictures.Astronomy.Galaxies');
|
||||
INSERT INTO test VALUES ('Top.Collections.Pictures.Astronomy.Astronauts');
|
||||
CREATE INDEX path_gist_idx ON test USING GIST (path);
|
||||
CREATE INDEX path_idx ON test USING BTREE (path);
|
||||
CREATE INDEX path_hash_idx ON test USING HASH (path);
|
||||
</programlisting>
|
||||
|
||||
<para>
|
||||
|
Reference in New Issue
Block a user