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 1q1nig-0004Uu-9w for pgsql-admin@arkaria.postgresql.org; Wed, 24 May 2023 12:35:58 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1q1nif-0002MK-6c for pgsql-admin@arkaria.postgresql.org; Wed, 24 May 2023 12:35:57 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1q1nie-0002MB-Ly for pgsql-admin@lists.postgresql.org; Wed, 24 May 2023 12:35:56 +0000 Received: from mailout.easymail.ca ([64.68.200.34]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1q1nib-001dfy-Et for pgsql-admin@lists.postgresql.org; Wed, 24 May 2023 12:35:55 +0000 Received: from localhost (localhost [127.0.0.1]) by mailout.easymail.ca (Postfix) with ESMTP id 549126A509; Wed, 24 May 2023 12:35:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=elevated-dev.com; s=easymail; t=1684931750; bh=ijwQLzu2nJ0zN9zkdixVJ2tDa477Q9J76+Z2WEaH+NQ=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From; b=Wr4vdsE79lmRPqb8n9G3UnvFDyKLPhUeeRp28MiXeW1d5hpeYHzRYjFTDXjfAOVCf 2KjWYt6j3Sd85CsCiG+XWMaEy3aClSWFjCnTVJQBXB+c01U9HomINgl40/eUYaL68B UVDrxZrVGMtZQjTut1FASWvPHey6b7f6gRUdbbYDn0oJVLYI/m9e8l2eG2nTqG+YaI 1pRil8niksoNjtF+yWHWm10gP0HnzFcCAnWNYqqEIzGW7CrsQfcFPW9QeYLJOLJUFX qfoVuyQ7KO9Wvoz0cUV0r8xXB9Sr4trH2WCgw7xC7+xbyMUi2Qt0shRX0bKI8dXh+6 pO72OBOQUnvGg== X-Virus-Scanned: Debian amavisd-new at emo07-pco.easydns.vpn Received: from mailout.easymail.ca ([127.0.0.1]) by localhost (emo07-pco.easydns.vpn [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 36NC9EH1Cn-m; Wed, 24 May 2023 12:35:49 +0000 (UTC) Received: from smtpclient.apple (unknown [165.140.184.195]) (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 90F716A35E; Wed, 24 May 2023 12:35:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=elevated-dev.com; s=easymail; t=1684931749; bh=ijwQLzu2nJ0zN9zkdixVJ2tDa477Q9J76+Z2WEaH+NQ=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From; b=LcMHZpcRAB2j3yT/H8bXRGk9Qy3LqrbSeRAyNEzmBh4+IoG1Jvqfvehcl9CkCvIKA nZnim9jM8hXVMJMm/C/ujDGYYVj5e628zMkoRYyQiDHIc8a4Z6JRJ04SAnNsYLb0bd vsXWTjxVc6X29QwlApAV7g0QQOaBwRAfAFa94QpPhiYAH89A1/+uRI6iky0XzszgIa ywopingiuNmHKmWwxwOP8cfY9fkyKPrMyJefsHMmZEtTAHOXGffQ9NPOOnhiExT2U3 giyr+Eu9rMxl3NgfxPAxDZYfxbZPL5/B7cKu+GK0WCGzf5iPAbnvyAh2jPvWfGkukT pflVFBq0vqfXg== Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.500.231\)) Subject: Re: Partition By Range Without PrimaryKey : Postgresql Version 12.8 on AWS RDS From: Scott Ribe In-Reply-To: Date: Wed, 24 May 2023 06:35:38 -0600 Cc: Pgsql-admin Content-Transfer-Encoding: quoted-printable Message-Id: <3ACB6DC6-E93B-45ED-B571-993A7190DEC1@elevated-dev.com> References: <404AADDB-83F9-4A4A-B6D7-E736C278EFDA@portalify.com> <9558F0D3-4B5B-4CE2-A27F-156149E75916@elevated-dev.com> <2BE78422-2D94-424F-ACA7-1FBAA62D7F5E@elevated-dev.com> <5F09A2FE-117F-47D4-B78B-25023A02AFB7@elevated-dev.com> To: Phani Prathyush Somayajula X-Mailer: Apple Mail (2.3731.500.231) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk > On May 23, 2023, at 10:30 PM, Phani Prathyush Somayajula = wrote: >=20 > Didn't quite get the question, Scott I asked, what's wrong with partitioning by placedon, with a primary key = of (betid, placedon). You responded that the client has some queries = which group by brandid. How does adding placedon to the primary key = interfere with that? At no point have you explained how adding placedon to the primary key is = a problem. I expect it is not actually a problem. It seems that you = should just do what the error suggested, add placedon to the primary = key.=