Re: Index usage for tstzrange? - Mailing list pgsql-performance

From Josh Berkus
Subject Re: Index usage for tstzrange?
Date
Msg-id 514BA04B.3040609@agliodbs.com
Whole thread Raw
In response to Re: Index usage for tstzrange?  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Index usage for tstzrange?
List pgsql-performance
> Well, no.  <@ is not a btree-indexable operator.

Yes, but it's equivalent to ( ( a >= b1 or b1 is null ) and ( a < b2 or
b2 is null ) ), which *is* btree-indexable and can use an index.  So it
seems like the kind of optimization we could eventually make.

--
Josh Berkus
PostgreSQL Experts Inc.
http://pgexperts.com


pgsql-performance by date:

Previous
From: Heikki Linnakangas
Date:
Subject: Re: Index usage for tstzrange?
Next
From: Cindy Makarowsky
Date:
Subject: Performance of query