Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fAqDT-0005hd-N2 for pgsql-docs@arkaria.postgresql.org; Tue, 24 Apr 2018 05:10:11 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fAqDS-000893-2D for pgsql-docs@arkaria.postgresql.org; Tue, 24 Apr 2018 05:10:10 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fAqDR-00088C-PJ for pgsql-docs@lists.postgresql.org; Tue, 24 Apr 2018 05:10:09 +0000 Received: from meldrar.postgresql.org ([2a02:c0:301:0:ffff::31]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fAqDP-0002hM-AB for pgsql-docs@lists.postgresql.org; Tue, 24 Apr 2018 05:10:08 +0000 Received: from [136.179.21.70] (helo=[10.5.39.224]) by meldrar.postgresql.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fAqDK-0006hx-ML; Tue, 24 Apr 2018 05:10:05 +0000 Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: Re: Start with [ , end with ) From: "Jonathan S. Katz" In-Reply-To: Date: Mon, 23 Apr 2018 22:09:56 -0700 Cc: yonatanhak@gmail.com, pgsql-docs@lists.postgresql.org Content-Transfer-Encoding: quoted-printable Message-Id: <73E74C0B-CE76-4E7F-BBE6-545EFC9582D1@postgresql.org> References: <152448843926.19802.14056302746131184432@wrigleys.postgresql.org> To: Mike Toews X-Mailer: Apple Mail (2.3273) X-Host-Lookup-Failed: Reverse DNS lookup failed for 136.179.21.70 (failed) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk > On Apr 23, 2018, at 8:37 PM, Mike Toews wrote: >=20 > On 24 April 2018 at 01:00, PG Doc comments form = wrote: >> 8.17.2. Examples >>=20 >> CREATE TABLE reservation (room int, during tsrange); >> INSERT INTO reservation VALUES >> (1108, '[2010-01-01 14:30, 2010-01-01 15:30)'); >> ^ = ^ >> While not an Error, still... >=20 > See 8.17.3. Inclusive and Exclusive Bounds >=20 > This is an example with an inclusive lower bound "[" and an exclusive > upper bound ")=E2=80=9D. When dealing with date/time ranges, it=E2=80=99s a very common use case = to have an inclusive lower-bound and exclusive upper-bound, especially when dealing with scheduling. Jonathan