Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gPjue-0001om-11 for pgsql-general@arkaria.postgresql.org; Thu, 22 Nov 2018 08:00:36 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gPjuc-0007ez-ID for pgsql-general@arkaria.postgresql.org; Thu, 22 Nov 2018 08:00:34 +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_SHA1:256) (Exim 4.89) (envelope-from ) id 1gPjuc-0007er-7u for pgsql-general@lists.postgresql.org; Thu, 22 Nov 2018 08:00:34 +0000 Received: from mail-ed1-x541.google.com ([2a00:1450:4864:20::541]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gPjua-0002JT-RO for pgsql-general@postgresql.org; Thu, 22 Nov 2018 08:00:33 +0000 Received: by mail-ed1-x541.google.com with SMTP id h50so6929916ede.5 for ; Thu, 22 Nov 2018 00:00:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=q1DjvzIY9NuZJ+W7kLmC2l/hNOu4YYy3pdHARq70uW8=; b=Dbafnoil7I+0lLaXiUhYX86mX5M5ySk4EpbvGUo8GlCq0nwuqq1jzTbYgsqv0Gn64e HDeSHqYRbe2XY4HPVXHBa/f/zjEwrjBYZP59CsFSOjXjaWYJVAFOebCkmj5KMGDM14A2 y5/1HVmxVdEYSoONnCpUzwIoi4XLPn2k3/O4imY/pXWGwJf1Hz5LhINGSh0ziwY4aHtz s+IPX38ZVfbkaBNlUVd66PwlumD/+hk/KbO7k4YYvdw5MkzaiLGG1wTWNnJEicPp9kNU akt0UXbukneqwZBV/EpmK2UkbjqyzM+khNTkrs3DkQOOyvHjxmrI3hExkC6NxIJLZsGw 3kSQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=q1DjvzIY9NuZJ+W7kLmC2l/hNOu4YYy3pdHARq70uW8=; b=MZXgpf6k8NJVuzlRqhX3zEjAON1SOGo1qbOdM+FFUPAt6ZdnsQdU2jVkh2JUd5MOdw HuFOa2w0TFS5+QgvaWODsTwhmuS/sPESU0vgHXGcnX1zODl0Os2arRUwDzF19x04ttE0 9V6tBbhE2HLKc3zMly3ZwIFIwlVw7c/txMS+r7noVfBQruBh8TxXMtqs8RlB+sgF0Bz/ fThfXFvdlPT/jKlU9Vc3rNnOZ+hrXyhs62JMt0mSIkx6qiGUMwIyhOguud6NNM3akd8W jOsJPGrTEorprZCuGyrhsjOQiTLhJMXBEW3fX6pPcGl32rHi55ACXe6OaWotdYrkjprV MzxA== X-Gm-Message-State: AA+aEWbu52g/S/Lxz0vJQS8zuSdqwQX/kUbp0Z5KGXeUojiGAruYOalA OEMR+5u+PvhYMUlFLn5Offw= X-Google-Smtp-Source: AFSGD/UReE5eHJ7NCqo2FGlkeBudplWg8Vv5S462dgijPf/JS+E7odICn4f1gYgI9xuQbGEhTamxoQ== X-Received: by 2002:a50:da43:: with SMTP id a3mr8664240edk.62.1542873632128; Thu, 22 Nov 2018 00:00:32 -0800 (PST) Received: from hollewijn.internal (217-19-30-105.dsl.cambrium.nl. [217.19.30.105]) by smtp.gmail.com with ESMTPSA id c29sm8814486eda.75.2018.11.22.00.00.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 22 Nov 2018 00:00:31 -0800 (PST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 12.1 \(3445.101.1\)) Subject: Re: Empty Range Bound Specified for Partition From: Alban Hertroys In-Reply-To: Date: Thu, 22 Nov 2018 09:00:28 +0100 Cc: pgsql-general@postgresql.org Content-Transfer-Encoding: quoted-printable Message-Id: <1E90D2FB-9C3A-4741-8997-A65E77067B34@gmail.com> References: To: ramsiddu007 X-Mailer: Apple Mail (2.3445.101.1) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk > On 22 Nov 2018, at 7:21, ramsiddu007 wrote: >=20 > pgsql> create table test_upto_100 partition of test_parent_partition > for values from ('51') to ('100'); >=20 > It was showing error like this.. >=20 > ERROR: empty range bound specified for partition "test_upto_100" > DETAIL: Specified lower bound ('51') is greater than or equal to = upper bound ('100'). > SQL state: 42P17 > =20 > =20 > I am not getting, please give me cause of this and = solution. Alphabetically, '1' comes before '5', so '100' comes before '51'. Numerically, you would get what you intended, but you're not = partitioning on numbers but on strings instead and those sort = alphabetically: '1', '10', '100', '11', '2', '3', '51', etc. Alban Hertroys -- If you can't see the forest for the trees, cut the trees and you'll find there is no forest.