pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Paul Jungwirth <pj@illuminatedcomputing.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: Temporal tables as part of main release
Date: Fri, 18 Jun 2021 11:28:26 -0700
Message-ID: <9977ea37-c0c7-c7eb-4ce6-2e2e751e1aa5@illuminatedcomputing.com> (raw)
In-Reply-To: <CAKFQuwZYDTNQpq4FYmd_4dtskK216aufnxXXVoxG=RZPnzPKeQ@mail.gmail.com>
References: <CAEr-yEhMoDFjV75cCgsKYqL4gwN0irHP1mi3AJVDBvo8aLAJNg@mail.gmail.com>
	<CAKFQuwZYDTNQpq4FYmd_4dtskK216aufnxXXVoxG=RZPnzPKeQ@mail.gmail.com>

On 6/17/21 11:10 PM, David G. Johnston wrote:
> And, since its not in the commitfest app, and the last emails I found 
> are over a year old, it doesn’t seem to be a priority for anyone at this 
> time.

I'm working on the application-time (aka valid-time) side of this, and 
there is another patch for system-time. I can't speak to that patch, but 
my patch is almost ready to share on the mailing list. I gave a progress 
update at PGCon last month, but here is a summary of what it includes:

- You can define PERIODs (this is based heavily on Vik Fearing's patch 
from a few years ago).
- You can define temporal PRIMARY KEYs and UNIQUE constraints.
- You can use FOR PORTION OF syntax to do temporal UPDATEs and DELETEs.
- You can define temporal FOREIGN KEYs including with all the 
CASCADE/SET NULL/SET DEFAULT options.

I noticed a problem last week with the FOR PORTION OF code, so as soon 
as I fix that I'm going to organize my changes into four patch files 
(one for each of those bullet points) and send that to the list.

So far I haven't tried to support partitioned tables yet, so certainly 
that will remain to be done. But that's the only missing piece I'm aware 
of. (I'd be grateful for any help adding that btw. And Corey has already 
offered to give me some help in general.)

I'm sorry it's been slow progress the last year. I do hope I can get 
this landed for v15!

Yours,

-- 
Paul              ~{:-)
pj@illuminatedcomputing.com





view thread (7+ messages)  latest in thread

Message-ID: <9977ea37-c0c7-c7eb-4ce6-2e2e751e1aa5@illuminatedcomputing.com>
Permalink:  ../9977ea37-c0c7-c7eb-4ce6-2e2e751e1aa5@illuminatedcomputing.com/
Also on:    postgresql.org/message-id/9977ea37-c0c7-c7eb-4ce6-2e2e751e1aa5@illuminatedcomputing.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: pj@illuminatedcomputing.com
  Subject: Re: Temporal tables as part of main release
  In-Reply-To: <9977ea37-c0c7-c7eb-4ce6-2e2e751e1aa5@illuminatedcomputing.com>
  References: <CAEr-yEhMoDFjV75cCgsKYqL4gwN0irHP1mi3AJVDBvo8aLAJNg@mail.gmail.com> <CAKFQuwZYDTNQpq4FYmd_4dtskK216aufnxXXVoxG=RZPnzPKeQ@mail.gmail.com> <9977ea37-c0c7-c7eb-4ce6-2e2e751e1aa5@illuminatedcomputing.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