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 1qfzHN-00DzGi-BZ for pgsql-hackers@arkaria.postgresql.org; Tue, 12 Sep 2023 09:01:53 +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 1qfzHM-006i0O-6w for pgsql-hackers@arkaria.postgresql.org; Tue, 12 Sep 2023 09:01:51 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qfzHL-006i02-Sv for pgsql-hackers@lists.postgresql.org; Tue, 12 Sep 2023 09:01:51 +0000 Received: from mail-vk1-xa2f.google.com ([2607:f8b0:4864:20::a2f]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1qfzHI-0047Ik-Ra for pgsql-hackers@lists.postgresql.org; Tue, 12 Sep 2023 09:01:50 +0000 Received: by mail-vk1-xa2f.google.com with SMTP id 71dfb90a1353d-493a661d7b6so2970680e0c.1 for ; Tue, 12 Sep 2023 02:01:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1694509308; x=1695114108; darn=lists.postgresql.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=szJT8CBlIX64vlEl9lZjVZspeE98cBMSQfC8CfYDBj4=; b=ChdkIK4q9yVMCHNlJA6DcAOxOd21rnGjoritHIZNHUGvBFD8gj/KkSwm3hPvKF3LVZ +nijrDar0QgokZOX/3akbnqqwDSgLrtaG1KXUVbpOIf/TeFO8ZTX6wdZVPbSzVdUwBEa efqb2tPtmufJ+9dw4MszIwOmsUKt+8nCMnSuY4NcinskcRy/QVziFj4YY9lZzl+HkkB/ 77fgLVErempL3oES7LUZRYAr7mdnESm7jCzEYroyqUPzZ73c1IqTuk0UOkPbCdeaql4E vYjKS7gpoTdfSqYxDK4lnw7nqdTDFdsxyoWeMzs0twsmlQFFNCAKT7WBWIB1isKJXtOn +rlA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694509308; x=1695114108; h=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=szJT8CBlIX64vlEl9lZjVZspeE98cBMSQfC8CfYDBj4=; b=XmAARncOWLJPah2ViDV1JLOzTGvGpUjyTd8HVSJAjPftX571+lb4BLfjWnBRcnyl/G QnTwBh9HsvwjWkaaoMCnnDZVPWQ7GK+kFG1vZXSSgK5Ua7S8u8XsibGRplLiWO9LNg4O YT5YZb8UaYKAOMgHQsaN8vXywhdlG0dbbWcwkQoOBHxBXz0E98709+Dw/tsjQvq3jij9 3NGadW2IGrBfSLwFiMxbu35SmCspb4CEGHlw9MINKJai2PrWT+uOvrfyFqfePz+sYv16 YVAiYMeRHS7ZGUBHueXTmCcDKj4ChQxdKpT3SOlIQOMHa7XKyEaND1MwaDr0a6r5jym9 VAVQ== X-Gm-Message-State: AOJu0Yy64IdCThC8yjiQ43R4hTKDUOwIFx8uO/2nFAEKPEx0aUxzYX/p 7kItpS4X+25ZQcpqPfYj4jHuKuEeo2YxCoN+kLE= X-Google-Smtp-Source: AGHT+IFOtyPH1o1OquBfdL9/j8nUuFat+UWRcutS0CP5Y1JmFr0jwOrEMCrJuisdhUaDG/J52sLOeMXsxm5DsVsmcf0= X-Received: by 2002:a05:6122:408e:b0:495:d7dc:6810 with SMTP id cb14-20020a056122408e00b00495d7dc6810mr897073vkb.5.1694509307765; Tue, 12 Sep 2023 02:01:47 -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: jian he Date: Tue, 12 Sep 2023 17:01:36 +0800 Message-ID: Subject: Re: SQL:2011 application time To: Paul A Jungwirth Cc: PostgreSQL Hackers Content-Type: text/plain; charset="UTF-8" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk hi. some trivial issue: in src/backend/catalog/index.c /* * System attributes are never null, so no need to check. */ if (attnum <= 0) since you already checked attnum == 0 so here you can just attnum < 0? ------------------------------------------------- ERROR: column "valid_at" named in WITHOUT OVERLAPS is not a range type IMHO, "named" is unnecessary. ------------------------------------------------- doc/src/sgml/catalogs.sgml pg_constraint adds another attribute (column): contemporal, seems no doc entry. also the temporal in oxford definition is "relating to time", here we can deal with range. So maybe "temporal" is not that accurate?