diff options
author | Heikki Linnakangas <heikki.linnakangas@iki.fi> | 2021-04-07 13:22:05 +0300 |
---|---|---|
committer | Heikki Linnakangas <heikki.linnakangas@iki.fi> | 2021-04-07 13:22:05 +0300 |
commit | 9f984ba6d23dc6eecebf479ab1d3f2e550a4e9be (patch) | |
tree | 1ec0fd0b4721f3c89960a2a0699cc398e6a659b3 /contrib/btree_gist/sql/float4.sql | |
parent | dd13ad9d39a1ba41cf329b6fe408b49be57c7b88 (diff) | |
download | postgresql-9f984ba6d23dc6eecebf479ab1d3f2e550a4e9be.tar.gz postgresql-9f984ba6d23dc6eecebf479ab1d3f2e550a4e9be.zip |
Add sortsupport for gist_btree opclasses, for faster index builds.
Commit 16fa9b2b30 introduced a faster way to build GiST indexes, by
sorting all the data. This commit adds the sortsupport functions needed
to make use of that feature for btree_gist.
Author: Andrey Borodin
Discussion: https://www.postgresql.org/message-id/2F3F7265-0D22-44DB-AD71-8554C743D943@yandex-team.ru
Diffstat (limited to 'contrib/btree_gist/sql/float4.sql')
-rw-r--r-- | contrib/btree_gist/sql/float4.sql | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/contrib/btree_gist/sql/float4.sql b/contrib/btree_gist/sql/float4.sql index 3da1ce953c8..0e3eb49343f 100644 --- a/contrib/btree_gist/sql/float4.sql +++ b/contrib/btree_gist/sql/float4.sql @@ -18,7 +18,11 @@ SELECT count(*) FROM float4tmp WHERE a > -179.0; SELECT a, a <-> '-179.0' FROM float4tmp ORDER BY a <-> '-179.0' LIMIT 3; +SET client_min_messages = DEBUG1; CREATE INDEX float4idx ON float4tmp USING gist ( a ); +CREATE INDEX float4idx_b ON float4tmp USING gist ( a ) WITH (buffering=on); +DROP INDEX float4idx_b; +RESET client_min_messages; SET enable_seqscan=off; |