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 1qo4kK-0004g3-0N for pgsql-docs@arkaria.postgresql.org; Wed, 04 Oct 2023 16:29:12 +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 1qo4kH-0016IF-TI for pgsql-docs@arkaria.postgresql.org; Wed, 04 Oct 2023 16:29:10 +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 1qo4i2-0012sA-RY for pgsql-docs@lists.postgresql.org; Wed, 04 Oct 2023 16:26:51 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qo4i0-0001Wa-Qq for pgsql-docs@lists.postgresql.org; Wed, 04 Oct 2023 16:26:51 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 394GQkPE2599190; Wed, 4 Oct 2023 12:26:46 -0400 From: Tom Lane To: mishchenkoa@google.com cc: pgsql-docs@lists.postgresql.org Subject: Re: Missing closing ] In-reply-to: <169643073223.656.14171363764779631925@wrigleys.postgresql.org> References: <169643073223.656.14171363764779631925@wrigleys.postgresql.org> Comments: In-reply-to PG Doc comments form message dated "Wed, 04 Oct 2023 14:45:32 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2599188.1696436806.1@sss.pgh.pa.us> Date: Wed, 04 Oct 2023 12:26:46 -0400 Message-ID: <2599189.1696436806@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk PG Doc comments form writes: > In the example session at > https://www.postgresql.org/docs/current/rangetypes.html#RANGETYPES-EXAMPLES > there are missing closing square bracket ] > Take a look below > CREATE TABLE reservation (room int, during tsrange); > INSERT INTO reservation VALUES > (1108, '[2010-01-01 14:30, 2010-01-01 15:30)'); > there should be ] after 15:30 No, it looks correct as given: that end of the range is open not closed. regards, tom lane