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 1l4ON1-0000Bd-0d for pgsql-hackers@arkaria.postgresql.org; Tue, 26 Jan 2021 13:26:59 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1l4OMT-0005fK-D3 for pgsql-hackers@arkaria.postgresql.org; Tue, 26 Jan 2021 13:26:25 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l4OMT-0005fC-37 for pgsql-hackers@lists.postgresql.org; Tue, 26 Jan 2021 13:26:25 +0000 Received: from mail-ot1-x336.google.com ([2607:f8b0:4864:20::336]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1l4OMO-0005id-LS for pgsql-hackers@postgresql.org; Tue, 26 Jan 2021 13:26:24 +0000 Received: by mail-ot1-x336.google.com with SMTP id k8so16135534otr.8 for ; Tue, 26 Jan 2021 05:26:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=enterprisedb-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=p69L2xtiz2ymvGBDY+RTmxJK91aY9G1WWZPqh2kXJTY=; b=RDMhzshnWxvFal8M2EOw23R4QJM/J51Nzvgi0p7b4trWl+8RZUTwZHfe1nT6ks4TXG CJTsvlqYTogYW7i7/rgzqEvQ/if8xYebGGVBntNR2NutPxAZPai8yLW5gqx426Zw8Itz Otw+5mxaUpnNX4zLse1xt5bXDPKS/jW6TfOzTB09xzP4U5aOKqcwokwUCYx2TbpIeYts a8excX0+y+TTMCfTH4CaSm018YmraFFl3SQkuCTx5/gSo9GlaevLkmvNV4zvMVyZ8s0f 1j3hK2ZOR6W8DqJW7lq1C0FYIOePa6/KfDb6IIY9TyRRVn5VUiYUciiWiG4KR31Vd3Kr xP8A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=p69L2xtiz2ymvGBDY+RTmxJK91aY9G1WWZPqh2kXJTY=; b=IY/48/784ENMtk5hO16/3pHZdrHMCwlo35yRDbL4sWNeCpFEQbCAU1RwGMAO1Rkcbz 1QTJtzG2VM3pvCCUPZZ5N9hQrdz86rZSjWmzXAYE7muHLPOCV3MHNOGoDVdu4V74dklR xpR6Gvv49HcmO6A9lM8ALpn7nmA3Oi/Rzsfzdr2aNuXabqqn3I8l1OLrbvTb5Lo6bWJS 40/pxHWA0+JuqeQcDeRSsLvuAE1iT31eVbiR2f0IMemziX4+MCZKfy2wHxg1DgAUK+Jg XqXKvEpNIW0KRMZWt5JGVMKTxtu28wsD1+ssynX242/TgJaSipgksl1dEF2kXaBSUeEi 9nwg== X-Gm-Message-State: AOAM530Rqp/oMbAEpA4ex+flFWsVvXjLacA/nC79kJWWpwDFf+nwWfI8 xcHkyFSu2cC9PGN/DeqNkZ0vy2PYG3fvmx8Ly5f57jgoMlvFaEM+jSOmmfLY3PFH86gOFfCkYRq N80rO1AJ2ufiUUSY9eRXRM9iN9SRHWnqi0be45Vmog4PazP3OBaCSK2MOfn+MN81+5i3tqh78wj r6PydAiV4rFmiqAmfefGz0HYFOOFxpT+JwhMftzeMXpOgfu21f6RxK X-Google-Smtp-Source: ABdhPJxyAUwKp5JqUeH24rG7LTPF7dL1SPjTe0jC6CtW2UOV7FizgqiMWyeE7alxt6L2Qq4WuI3QAYKn484eiC83rDU= X-Received: by 2002:a9d:3603:: with SMTP id w3mr3844561otb.110.1611667578109; Tue, 26 Jan 2021 05:26:18 -0800 (PST) MIME-Version: 1.0 References: <7990518c-3dd3-4f30-c5e1-e094f6126e9a@postgresfriends.org> <3a53c363-3e3f-813f-ad2f-c2f25ba8f006@postgresfriends.org> In-Reply-To: <3a53c363-3e3f-813f-ad2f-c2f25ba8f006@postgresfriends.org> From: Simon Riggs Date: Tue, 26 Jan 2021 13:26:06 +0000 Message-ID: Subject: Re: WIP: System Versioned Temporal Table To: Vik Fearing Cc: Ryan Lambert , Masahiko Sawada , Surafel Temesgen , Michael Paquier , =?UTF-8?Q?R=C3=A9mi_Lapeyre?= , Eli Marmor , David Steele , PostgreSQL Hackers , Georgios Content-Type: text/plain; charset="UTF-8" X-CLOUD-SEC-AV-Info: enterprisedb,google_mail,monitor X-CLOUD-SEC-AV-Sent: true X-Gm-Spam: 0 X-Gm-Phishy: 0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Tue, Jan 26, 2021 at 12:51 PM Vik Fearing wrote: > > On 1/26/21 1:16 PM, Simon Riggs wrote: > > On Tue, Jan 26, 2021 at 11:33 AM Vik Fearing wrote: > >> > >> On 1/11/21 3:02 PM, Simon Riggs wrote: > >>> * UPDATE foo SET start_timestamp = DEFAULT should fail but currently doesn't > >> > >> I'm still in the weeds of reviewing this patch, but why should this > >> fail? It should not fail. > > > > It should not be possible for the user to change the start or end > > timestamp of a system_time time range, by definition. > > Correct, but setting it to DEFAULT is not changing it. > > See also SQL:2016 11.5 General Rule 3.a. Thanks for pointing this out. Identity columns don't currently work that way. -- Simon Riggs http://www.EnterpriseDB.com/