Re: EXCLUDE USING and tstzrange

Поиск
Список
Период
Сортировка
От Adrian Klaver
Тема Re: EXCLUDE USING and tstzrange
Дата
Msg-id 574325d8-1c95-7825-8aa8-17f5b49faac6@aklaver.com
обсуждение исходный текст
Ответ на EXCLUDE USING and tstzrange  (Laura Smith <n5d9xq3ti233xiyif2vp@protonmail.ch>)
Ответы Re: EXCLUDE USING and tstzrange  (Laura Smith <n5d9xq3ti233xiyif2vp@protonmail.ch>)
Список pgsql-general
On 6/4/21 7:32 AM, Laura Smith wrote:
> Hi,
> 
> I'm having difficulty finding the right part of the docs for this one.
> 
> Could someone kindly clarify:
> 
> create table test (
> test_id text,
> test_range tstzrange);
> 
> Will "EXCLUDE USING gist (test_id WITH =, test_range WITH && )" work as expected or do I need to use "EXCLUDE USING
gist(test_id WITH =, test_range WITH TIME ZONE && )" to ensure the timezone is correctly taken into account during
comparison?
 

tstzrange is over timestamp with time zone, so time zones are already 
taken into account.

> 
> Thanks !
> 
> Laura
> 
> 


-- 
Adrian Klaver
adrian.klaver@aklaver.com



В списке pgsql-general по дате отправления:

Предыдущее
От: "Zwettler Markus (OIZ)"
Дата:
Сообщение: autovacuum on pg_catalog tables
Следующее
От: Laura Smith
Дата:
Сообщение: Re: EXCLUDE USING and tstzrange