Index usage for tstzrange?

Поиск
Список
Период
Сортировка
От Josh Berkus
Тема Index usage for tstzrange?
Дата
Msg-id 514A5088.6060101@agliodbs.com
обсуждение исходный текст
Ответы Re: Index usage for tstzrange?  (Tom Lane <tgl@sss.pgh.pa.us>)
Список 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 по дате отправления:

Предыдущее
От: Rodrigo Barboza
Дата:
Сообщение: Re: effective_cache_size on 32-bits postgres
Следующее
От: David Rees
Дата:
Сообщение: Re: New server setup