Re: SQL:2011 PERIODS vs Postgres Ranges?

From: Paul A Jungwirth <pj(at)illuminatedcomputing(dot)com>
To: Ibrar Ahmed <ibrar(dot)ahmad(at)gmail(dot)com>
Cc: PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: SQL:2011 PERIODS vs Postgres Ranges?
Date: 2019-11-07 05:31:51
Message-ID: CA+renyX548HnzLqLYu-H+Asf4PvhNEc3=O+RziRYD6j4ygJ6tQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Tue, Aug 6, 2019 at 11:07 AM Ibrar Ahmed <ibrar(dot)ahmad(at)gmail(dot)com> wrote:
> Thanks, Paul for the explanation. I think its good start, now I am looking at the
> range_agg patch to integrate that with that and test that.

Since we've started another commitfest, here is an updated version of
this patch. I've rebased it on the latest multirange patch (which is
rebased on the latest master). I've incorporated your feedback. I've
also added some progress on adding FOR PORTION OF to UPDATE and DELETE
(mostly UPDATE). That is even more WIP than the PK/FK work, because
I'm still working on the executor phase, so feel free to ignore it or
offer feedback. I've put the DML work in a separate patch file. (I'm
planning to roughly follow ON CONFLICT DO UPDATE for the ModifyTable
changes, since temporal DML is also an extra clause that transforms
your commands into something else. For example a temporal UPDATE could
become an UPDATE plus two INSERTs. I'm probably going to need some
help eventually getting the concurrency stuff right here though.) (I
think temporal DML makes sense to include in this patch because it is
required for cascading FKs. I think once everything is working I'll
give you a patch series that goes PKs - DML - FKs. Or even better
PERIODs - PKs - DML - FKs.)

Thanks!
Paul

Attachment Content-Type Size
v2-0002-temporal-update.patch application/octet-stream 31.2 KB
v2-0001-temporal-pks-and-fks.patch application/octet-stream 125.3 KB

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Kyotaro Horiguchi 2019-11-07 05:36:24 Re: [proposal] recovery_target "latest"
Previous Message Dilip Kumar 2019-11-07 05:31:17 Re: Reorderbuffer crash during recovery