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 1oeHxg-0007S3-L2 for pgsql-admin@arkaria.postgresql.org; Fri, 30 Sep 2022 15:30:00 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oeHxf-00052L-H0 for pgsql-admin@arkaria.postgresql.org; Fri, 30 Sep 2022 15:29:59 +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 1oeHxf-000524-61 for pgsql-admin@lists.postgresql.org; Fri, 30 Sep 2022 15:29:59 +0000 Received: from mailout.easymail.ca ([64.68.200.34]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oeHxd-0000WN-18 for pgsql-admin@lists.postgresql.org; Fri, 30 Sep 2022 15:29:58 +0000 Received: from localhost (localhost [127.0.0.1]) by mailout.easymail.ca (Postfix) with ESMTP id 51EC464D73; Fri, 30 Sep 2022 15:29:54 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at emo09-pco.easydns.vpn Received: from mailout.easymail.ca ([127.0.0.1]) by localhost (emo09-pco.easydns.vpn [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id WQpWS8YoK-4G; Fri, 30 Sep 2022 15:29:54 +0000 (UTC) Received: from smtpclient.apple (unknown [4.28.96.150]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mailout.easymail.ca (Postfix) with ESMTPSA id 0219E64C53; Fri, 30 Sep 2022 15:29:53 +0000 (UTC) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.1.1\)) Subject: Re: Issue with partitioning - legitimate insert fails with no partition message From: Scott Ribe In-Reply-To: <42b71a74-1439-4bfa-5a3f-727e712c2ca0@quadratum-braccas.com> Date: Fri, 30 Sep 2022 09:29:52 -0600 Cc: Pgsql-admin Content-Transfer-Encoding: quoted-printable Message-Id: <9F1653B6-2CC5-41BD-B63B-14927FF90081@elevated-dev.com> References: <2121b49f-52fb-ab79-3ea1-c398d7a8656f@quadratum-braccas.com> <42b71a74-1439-4bfa-5a3f-727e712c2ca0@quadratum-braccas.com> To: Sbob X-Mailer: Apple Mail (2.3696.120.41.1.1) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk > On Sep 30, 2022, at 9:21 AM, Sbob wrote: >=20 > It seems that the range for partitions is inclusive of the starting = value and exclusive of the ending value, maybe this is documented and I = missed it? Yes, it is. (and "to" is not "through") The explanation is: think of a floating-point value, if it included the = end value would you use XXX.999, or XXX.9999, or XXX.99999... Same = argument applies to timestamps--even though they are stored as 64-bit = integers, how would you figure out the value that is 1 bit less than = your end date?