Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qefGJ-007PHX-Co for pgsql-hackers@arkaria.postgresql.org; Fri, 08 Sep 2023 17:27:19 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1qefGH-00Bvk3-TD for pgsql-hackers@arkaria.postgresql.org; Fri, 08 Sep 2023 17:27:17 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qefGH-00Bvjf-Ed for pgsql-hackers@lists.postgresql.org; Fri, 08 Sep 2023 17:27:17 +0000 Received: from mail-pj1-x102c.google.com ([2607:f8b0:4864:20::102c]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1qefGD-003vgD-Hw for pgsql-hackers@lists.postgresql.org; Fri, 08 Sep 2023 17:27:16 +0000 Received: by mail-pj1-x102c.google.com with SMTP id 98e67ed59e1d1-26b44247123so1840259a91.2 for ; Fri, 08 Sep 2023 10:27:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=illuminatedcomputing-com.20230601.gappssmtp.com; s=20230601; t=1694194030; x=1694798830; darn=lists.postgresql.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=ul9PLTLym8NwmH9by3szRH8u83PRMVcWdaiB3GOr8gY=; b=cNLIvhHr3u21GxCXK5JCYJ5cBkkXB1ci1CkGmskOzbndAoWXDJRKT1TN93/ObHFHFs jyuAk441CbPGbkUWCH/HmgUBGnFG2NC4qH6PCIqfrhfie4EfdJr0iFmG+rZsI6638n6b /LKd8w/dyxm300i2qfVO9NdAoOvCJ3z1sQHbBJajgN3aFKZggeebT0Lo2YTsXRmW5kW6 DpLq1PXy0IMfzwOz/Tp2g7zCJu+iWUQtUnASONOjCP0l+21QSLComCx4vKAssDqqW9S3 sjCN0i9Jeqb8zemItwxpyROvf2vsO/fmL1YXl7mNLA6Zmzkk6u8EUXsGmGd62OLKefmy qEQg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694194030; x=1694798830; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ul9PLTLym8NwmH9by3szRH8u83PRMVcWdaiB3GOr8gY=; b=xKQ0Xf0TGz6nquaUdhvkn+ivG03JnDf1YK16UJVNLgBJqOx/Q4Y6PrkeHrr+AVtICX /qoElR3VEwIvIrzj2Wv4D8ctMdfeYswnYUvSZLMi6CyCNlA5YJ7TtEyGZiiSNslnuGXX AKF9ha24pMUn3pDm70G21aeGP2oNJcEUrokwLU2We9TEQY+qgGH/3kb+/UviyGW7ryun n/wvDEhxReg4o0i+yqSb07SIRzBO4M4dnRJxM8CrDwBSGUiUjn4GNBR78RDSkcGhVEpi ZwRNQeADSdQY9taVayEC7BNbPhPctr1+wf2eg6Wi1b4x72UJRZEGFaEQXf7Fg28QHEpi aqoQ== X-Gm-Message-State: AOJu0YxEB/sXbFGrcLdyuJe58QMQoD7/LjWOJpNkv2ySrpCDX1MS9YvD poBE4HSobXYZHqQbnhruSHDghALPeGclpTwgEKY+/A== X-Google-Smtp-Source: AGHT+IHJIHSV15POh0YBv23fKKlMCki9nJ9rM/pvwENvFc+16oDhzWQkE8lwgno6S5I4tEmhroG87ZKsWGO1jbq+HLY= X-Received: by 2002:a17:90a:a206:b0:268:6339:318 with SMTP id u6-20020a17090aa20600b0026863390318mr3160834pjp.30.1694194030493; Fri, 08 Sep 2023 10:27:10 -0700 (PDT) MIME-Version: 1.0 References: <5650d77a-1d73-fd8d-4410-8e97dbeff572@illuminatedcomputing.com> <21964319-46e5-3e47-217b-6ac4169bdf13@enterprisedb.com> <27361388-f5ab-ea36-ea35-41d68a90e60d@illuminatedcomputing.com> <152e4c2c-36b4-bdc0-1b62-e9f9e8b68adc@enterprisedb.com> <251B44D1-D3E0-47E4-AB9D-4A848EDB495E@yesql.se> <1c674adf-4114-e8d8-cec7-ac10e2f424c7@enterprisedb.com> <831f17ba-ff36-1380-a475-a7cd2c65a89c@enterprisedb.com> <6f010a6e-8e20-658b-dc05-dc9033a694da@eisentraut.org> <7d44dade-ff31-5eef-80ac-78ed838066f6@postgresfriends.org> <88dadcc1-6652-ff7d-264d-73906a53dee9@illuminatedcomputing.com> In-Reply-To: From: Paul A Jungwirth Date: Fri, 8 Sep 2023 10:26:59 -0700 Message-ID: Subject: Re: SQL:2011 application time To: jian he Cc: Vik Fearing , Peter Eisentraut , Corey Huinker , PostgreSQL Hackers Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Fri, Sep 8, 2023 at 2:35=E2=80=AFAM jian he wrote: > > hi. > the following script makes the server crash (Segmentation fault). > [snip] > > ALTER TABLE temporal_fk_rng2rng > ADD CONSTRAINT temporal_fk_rng2rng_fk > FOREIGN KEY (parent_id, PERIOD valid_at) > REFERENCES temporal_rng > on update set DEFAULT > on delete set DEFAULT; Thank you for the report! It looks like I forgot to handle implicit column names after REFERENCES. The PERIOD part needs to get looked up from the PK as we do for normal FK attrs. I'll add that to the next patch. Yours, Paul