Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1luJEH-0007LS-E8 for pgsql-general@arkaria.postgresql.org; Fri, 18 Jun 2021 18:28:33 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1luJEG-000296-Do for pgsql-general@arkaria.postgresql.org; Fri, 18 Jun 2021 18:28:32 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1luJEG-00024V-1T for pgsql-general@lists.postgresql.org; Fri, 18 Jun 2021 18:28:32 +0000 Received: from mail-pl1-x630.google.com ([2607:f8b0:4864:20::630]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1luJED-0008Pw-7w for pgsql-general@lists.postgresql.org; Fri, 18 Jun 2021 18:28:31 +0000 Received: by mail-pl1-x630.google.com with SMTP id e1so5102147plh.8 for ; Fri, 18 Jun 2021 11:28:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=illuminatedcomputing-com.20150623.gappssmtp.com; s=20150623; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=4hVvKp+y88dDbmydt5WtHC8O4Ch/NLjPVOzpueDQeSc=; b=VnkFfa06Zhqj2zxalhFaa5L+aNnEkUun54zJ6WzxUyfDi+cuKq8ejBfNvhqEKTIRI5 TxtuEZJtkoIBeQ9Y6UmcVB2YSl5dXdsnt7vW5NWnoulyOKnF0WqProtLWHYca/+yKFbz 4oFQWV7LTcfQ+1eT0FAvkf5IJ04Ld+ovO+ExvWyMYGh/kto2XjytCL/rx9/eXQ55wdqp hjFiZHKv8RBuINiT+8jsmMh+Gd7QMVygJt/y4bjcl9LWuIsm+KkY33CtD+AMOc3rzqDU DeeddqCYvxTHPzbcYQIZaLgWag1lxKZmyxhKOb6/pQv8ZueTqEovbFSOuUkPpNCKPMjR 65jQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=4hVvKp+y88dDbmydt5WtHC8O4Ch/NLjPVOzpueDQeSc=; b=LySU0ZUMidQvz9EDnM3FOB5FFE3twIibb2i9YlOZYnyCbkyoc1AfVWLcrONjMLl3TS Av1LpXj1o+vGLSUrAVv+q/MSvZQL9fC+IxgnTWyYa6ZbJR9vorIrOXZ4t5HOoP6QsjS7 xci39aas0Ndd+arFhe+S13IXMUTxKnGQJS4gbEol0Zr/vxSiZiPg/++T2arKvFruAmCJ kgA/QXiQEZdn96XMgm0CUxmC9abru2T9CmmXLCOwPWp2YQU5PcEayyikLfDFOrKwlIRd P9QbLmfKFOnFIXQQ0/99QLDqAzH+xkgHMNqlXalo4HH/ibHl2ZSAKgaUYywekcl6ZxMm Fzwg== X-Gm-Message-State: AOAM530hRV3MgBbBj3MU1vL1c8zXQf5avyqRMwvT2e/p8vTnKiH6dQ7R waEAPontVsdasNPhFWQB6YMsCSMwqnfo8Q== X-Google-Smtp-Source: ABdhPJwZfyNW9LK+Qtm9dZ3Mg7Krv7FtdHeNZ3F4D8IP36bZVidGRf0W0Zkk9DsYZa2YopnA3LVuAg== X-Received: by 2002:a17:902:be10:b029:109:7460:cc41 with SMTP id r16-20020a170902be10b02901097460cc41mr5964637pls.4.1624040907554; Fri, 18 Jun 2021 11:28:27 -0700 (PDT) Received: from [192.168.2.144] ([50.53.109.254]) by smtp.googlemail.com with ESMTPSA id gi20sm2352810pjb.20.2021.06.18.11.28.26 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 18 Jun 2021 11:28:27 -0700 (PDT) Subject: Re: Temporal tables as part of main release To: pgsql-general@lists.postgresql.org References: From: Paul Jungwirth Message-ID: <9977ea37-c0c7-c7eb-4ce6-2e2e751e1aa5@illuminatedcomputing.com> Date: Fri, 18 Jun 2021 11:28:26 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk 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