mirror of
https://github.com/postgres/postgres.git
synced 2025-10-19 15:49:24 +03:00
Add more cross-type comparisons to contrib/btree_gin.
Using the just-added infrastructure, extend btree_gin to support cross-type operators in its other opclasses. All of the cross-type comparison operators supported by the core btree opclasses for these datatypes are now available for btree_gin indexes as well. Author: Tom Lane <tgl@sss.pgh.pa.us> Reviewed-by: Arseniy Mukhin <arseniy.mukhin.dev@gmail.com> Discussion: https://postgr.es/m/262624.1738460652@sss.pgh.pa.us
This commit is contained in:
@@ -19,3 +19,14 @@ EXPLAIN (COSTS OFF) SELECT * FROM test_name WHERE i<='abc' ORDER BY i;
|
||||
EXPLAIN (COSTS OFF) SELECT * FROM test_name WHERE i='abc' ORDER BY i;
|
||||
EXPLAIN (COSTS OFF) SELECT * FROM test_name WHERE i>='abc' ORDER BY i;
|
||||
EXPLAIN (COSTS OFF) SELECT * FROM test_name WHERE i>'abc' ORDER BY i;
|
||||
|
||||
explain (costs off)
|
||||
SELECT * FROM test_name WHERE i<'abc'::text ORDER BY i;
|
||||
|
||||
SELECT * FROM test_name WHERE i<'abc'::text ORDER BY i;
|
||||
SELECT * FROM test_name WHERE i<='abc'::text ORDER BY i;
|
||||
SELECT * FROM test_name WHERE i='abc'::text ORDER BY i;
|
||||
SELECT * FROM test_name WHERE i>='abc'::text ORDER BY i;
|
||||
SELECT * FROM test_name WHERE i>'abc'::text ORDER BY i;
|
||||
|
||||
SELECT * FROM test_name WHERE i<=repeat('abc', 100) ORDER BY i;
|
||||
|
Reference in New Issue
Block a user