Re: Struggling with EXCLUDE USING gist

Поиск
Список
Период
Сортировка
От Laura Smith
Тема Re: Struggling with EXCLUDE USING gist
Дата
Msg-id tv5wJFyqPfgkqVu1PVgGQe3vDX6GLEaMygKxe0b-l5mVNGPRTDBVj2cxC_TAP91KvglEueXQwTYfDODGIzTbHD4wGI_OEL8LKO542-VOLMk=@protonmail.ch
обсуждение исходный текст
Ответ на Re: Struggling with EXCLUDE USING gist  (Mark Dilger <mark.dilger@enterprisedb.com>)
Список pgsql-general


Sent with ProtonMail Secure Email.

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On Friday, 4 June 2021 18:45, Mark Dilger <mark.dilger@enterprisedb.com> wrote:

> > On Jun 4, 2021, at 9:47 AM, Laura Smith n5d9xq3ti233xiyif2vp@protonmail.ch wrote:
> > CREATE TABLE test (
> > t_val text not null,
> > t_version text unique not null default gen_random_uuid() ,
> > t_range tstzrange not null default tstzrange('-infinity','infinity'),
> > EXCLUDE USING gist (t_val WITH=, t_range WITH &&) DEFERRABLE INITIALLY DEFERRED
> > );
>
> <snip>
>
> > INSERT INTO test(t_val) values(p_val);
>
> This will insert a t_range of ('-infinity','infinity'), won't it? Wouldn't you want to instead insert with t_range
startingaround now() rather than starting at -infinity? 
>
> —
> Mark Dilger
> EnterpriseDB: http://www.enterprisedb.com
> The Enterprise PostgreSQL Company

Interesting. I will go test.  It hadn't occurred to me the start time might be what was causing all the errors.

Thanks for the suggestion Mark. I will report back.




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

Предыдущее
От: Joe Conway
Дата:
Сообщение: Re: Struggling with EXCLUDE USING gist
Следующее
От: Laura Smith
Дата:
Сообщение: Re: Struggling with EXCLUDE USING gist