Index usage for tstzrange? - Mailing list pgsql-performance

From Josh Berkus
Subject Index usage for tstzrange?
Date
Msg-id 514A5088.6060101@agliodbs.com
Whole thread Raw
Responses Re: Index usage for tstzrange?
List pgsql-performance
Folks,

I just noticed that if I use a tstzrange for convenience, a standard
btree index on a timestamp won't get used for it.  Example:

table a (
    id int,
    val text,
    ts timestamptz
);
index a_ts on a(ts);

SELECT * FROM a WHERE ts <@ tstzrange('2013-01-01','2013-01-01 00:10:00')

... will NOT use the index a_ts.  Is this something which could be fixed
for 9.4?

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


pgsql-performance by date:

Previous
From: Rodrigo Barboza
Date:
Subject: Re: effective_cache_size on 32-bits postgres
Next
From: David Rees
Date:
Subject: Re: New server setup