mirror of
https://github.com/postgres/postgres.git
synced 2025-07-28 23:42:10 +03:00
Add btree_gin contrib module.
Teodor Sigaev and Oleg Bartunov
This commit is contained in:
15
contrib/btree_gin/sql/text.sql
Normal file
15
contrib/btree_gin/sql/text.sql
Normal file
@ -0,0 +1,15 @@
|
||||
set enable_seqscan=off;
|
||||
|
||||
CREATE TABLE test_text (
|
||||
i text
|
||||
);
|
||||
|
||||
INSERT INTO test_text VALUES ('aaa'),('a'),('abc'),('abb'),('axy'),('xyz');
|
||||
|
||||
CREATE INDEX idx_text ON test_text USING gin (i);
|
||||
|
||||
SELECT * FROM test_text WHERE i<'abc' ORDER BY i;
|
||||
SELECT * FROM test_text WHERE i<='abc' ORDER BY i;
|
||||
SELECT * FROM test_text WHERE i='abc' ORDER BY i;
|
||||
SELECT * FROM test_text WHERE i>='abc' ORDER BY i;
|
||||
SELECT * FROM test_text WHERE i>'abc' ORDER BY i;
|
Reference in New Issue
Block a user