pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Joe Conway <mail@joeconway.com>
To: Laura Smith <n5d9xq3ti233xiyif2vp@protonmail.ch>
To: Adrian Klaver <adrian.klaver@aklaver.com>
Cc: postgre <pgsql-general@lists.postgresql.org>
Subject: Re: Struggling with EXCLUDE USING gist
Date: Fri, 4 Jun 2021 14:26:50 -0400
Message-ID: <541a4f52-3e11-1d75-741a-daa54b48af19@joeconway.com> (raw)
In-Reply-To: <ci4WFRevLMkhsuc5BwISmC6j9oT_29nAe1LyGqAGO_RIl7SlhJZycTCp2mzaCttrtVNGyDatlCeKAG4aSk5P06DBi3zFms-LwaDbyIlkvZY=@protonmail.ch>
References: <M6lJSlEwKoymv5VnRk4t2ENAnQAabdAWwbpzRIrw5mGEyel4Asda9xXTjYtZWFOuVYM6GFwGfYErqhYmpc9skrTA3FqZBCd_-LF2tw3yKiU=@protonmail.ch>
	<a691e9f9-df2b-34f1-a1a2-3b15763cac06@aklaver.com>
	<ci4WFRevLMkhsuc5BwISmC6j9oT_29nAe1LyGqAGO_RIl7SlhJZycTCp2mzaCttrtVNGyDatlCeKAG4aSk5P06DBi3zFms-LwaDbyIlkvZY=@protonmail.ch>

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





view thread (13+ messages)  latest in thread

Message-ID: <541a4f52-3e11-1d75-741a-daa54b48af19@joeconway.com>
Permalink:  ../541a4f52-3e11-1d75-741a-daa54b48af19@joeconway.com/
Also on:    postgresql.org/message-id/541a4f52-3e11-1d75-741a-daa54b48af19@joeconway.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: mail@joeconway.com, n5d9xq3ti233xiyif2vp@protonmail.ch, adrian.klaver@aklaver.com
  Subject: Re: Struggling with EXCLUDE USING gist
  In-Reply-To: <541a4f52-3e11-1d75-741a-daa54b48af19@joeconway.com>
  References: <M6lJSlEwKoymv5VnRk4t2ENAnQAabdAWwbpzRIrw5mGEyel4Asda9xXTjYtZWFOuVYM6GFwGfYErqhYmpc9skrTA3FqZBCd_-LF2tw3yKiU=@protonmail.ch> <a691e9f9-df2b-34f1-a1a2-3b15763cac06@aklaver.com> <ci4WFRevLMkhsuc5BwISmC6j9oT_29nAe1LyGqAGO_RIl7SlhJZycTCp2mzaCttrtVNGyDatlCeKAG4aSk5P06DBi3zFms-LwaDbyIlkvZY=@protonmail.ch> <541a4f52-3e11-1d75-741a-daa54b48af19@joeconway.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox