Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1flj1j-00072Y-T3 for pgsql-bugs@arkaria.postgresql.org; Fri, 03 Aug 2018 22:58:32 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1flj1i-00020M-2s for pgsql-bugs@arkaria.postgresql.org; Fri, 03 Aug 2018 22:58:30 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1flj1h-00020F-St for pgsql-bugs@lists.postgresql.org; Fri, 03 Aug 2018 22:58:29 +0000 Received: from cat-porwal-prod-mail1.catalyst.net.nz ([202.78.240.226]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1flj1a-0001Mh-BN for pgsql-bugs@lists.postgresql.org; Fri, 03 Aug 2018 22:58:29 +0000 Authentication-Results: auth=pass smtp.auth=mark.kirkwood@catalyst.net.nz smtp.mailfrom=mark.kirkwood@catalyst.net.nz Received: from [IPv6:2406:e001:b97:1:adda:d5ea:54da:ce3e] (unknown [IPv6:2406:e001:b97:1:adda:d5ea:54da:ce3e]) (Authenticated sender: mark.kirkwood@catalyst.net.nz) by cat-porwal-prod-mail1.catalyst.net.nz (Postfix) with ESMTPSA id B897380CFE for ; Sat, 4 Aug 2018 10:58:17 +1200 (NZST) Subject: Re: Range partition creation failing due to incorrectly deciding lower bound greater than upper To: pgsql-bugs@lists.postgresql.org References: From: Mark Kirkwood Message-ID: <3567c008-33f8-772b-cbb0-c6942822b2dc@catalyst.net.nz> Date: Sat, 4 Aug 2018 10:58:17 +1200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 04/08/18 10:54, Mark Kirkwood wrote: > > > part=# CREATE TABLE date_fact_2021 PARTITION OF date_fact > FOR VALUES FROM ('2018-09-30 02:34:42.031250') TO ('2018-09-30 > 03:15:23.437500'); > ERROR:  empty range bound specified for partition "date_fact_2021" > DETAIL:  Specified lower bound ('2018-09-30 03:34:42.03125+13') is > greater than or equal to upper bound ('2018-09-30 03:15:23.4375+13'). > > Err, that is weird - where did '2018-09-30 03:34:42.03125+13')come from? > > Doh! New Zealand daylight saving kicks in just then - should have checked that 1st, sorry. regards Mark