Re: Struggling with EXCLUDE USING gist - Mailing list pgsql-general

From Joe Conway
Subject Re: Struggling with EXCLUDE USING gist
Date
Msg-id 541a4f52-3e11-1d75-741a-daa54b48af19@joeconway.com
Whole thread Raw
In response to Re: Struggling with EXCLUDE USING gist  (Laura Smith <n5d9xq3ti233xiyif2vp@protonmail.ch>)
List pgsql-general
On 6/4/21 1:32 PM, Laura Smith wrote:
> What is the solution then ?  I need to keep historical versions but
> at the same time I need a "current" version.  If I am not able to use
> "infinity" as bounds for "current" version then clearly I'm wasting
> my time trying to use EXCLUDE AS for version tracking because clearly
> using fixed timestamps instead of "infinity" for tstzrange would be a
> hacky fix that will be fragile and prone to breakage.

This is not exactly the same thing you are trying to do (I think), but 
maybe you can get some useful ideas from this:

https://www.joeconway.com/presentations/RLS_TimeTravel-FOSDEM2019.pdf

HTH,

Joe

-- 
Crunchy Data - http://crunchydata.com
PostgreSQL Support for Secure Enterprises
Consulting, Training, & Open Source Development



pgsql-general by date:

Previous
From: Adrian Klaver
Date:
Subject: Re: Struggling with EXCLUDE USING gist
Next
From: Laura Smith
Date:
Subject: Re: Struggling with EXCLUDE USING gist