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 1q1RQe-0003Xy-J3 for pgsql-admin@arkaria.postgresql.org; Tue, 23 May 2023 12:47:52 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1q1RQd-0001LA-Fc for pgsql-admin@arkaria.postgresql.org; Tue, 23 May 2023 12:47:51 +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 1q1RQc-0001L1-Ui for pgsql-admin@lists.postgresql.org; Tue, 23 May 2023 12:47:51 +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 1q1RQa-001SEf-AW for pgsql-admin@lists.postgresql.org; Tue, 23 May 2023 12:47:49 +0000 Received: from localhost (localhost [127.0.0.1]) by mailout.easymail.ca (Postfix) with ESMTP id 7C1BD6A246; Tue, 23 May 2023 12:47:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=elevated-dev.com; s=easymail; t=1684846065; bh=7ic2lvIv8PxIke1b08qucY6FHe6vzeAgZsbgJjQk3p0=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From; b=xNJYHmjklfqJpzamE8vOR85Iw33Fep1WtigyylrTtHqPLQwu0M7grjfkZ/bBJBkxe Tua02H1RVDpXhLr7c7Pl0LIpNuR57MunYzKe3ALoMi9siHGdVWRLF6Ef0zyvpsQubH 17iQFy8POMhaMdmZjFZAZ/JDyUnqzNtV4qaK5ZQgGLFBV59Ug5kWe/RH/jkDKqJAmk 1SDYJ16EQAr4l9FernOR2mXvNEe2+u4Y+Lp+onjJXW0U42qUTYoh5n475pYzOhDX8O 9SonaSBaR1KO6pFDa47JLNuaqPsul70lD8aZpMd1KLW1BCJjlqS2W3dTgpYHW8arEy 6+dKWqlByMk6w== 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 L-z8Dkmm97ug; Tue, 23 May 2023 12:47:45 +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 D897A6A230; Tue, 23 May 2023 12:47:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=elevated-dev.com; s=easymail; t=1684846065; bh=7ic2lvIv8PxIke1b08qucY6FHe6vzeAgZsbgJjQk3p0=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From; b=xNJYHmjklfqJpzamE8vOR85Iw33Fep1WtigyylrTtHqPLQwu0M7grjfkZ/bBJBkxe Tua02H1RVDpXhLr7c7Pl0LIpNuR57MunYzKe3ALoMi9siHGdVWRLF6Ef0zyvpsQubH 17iQFy8POMhaMdmZjFZAZ/JDyUnqzNtV4qaK5ZQgGLFBV59Ug5kWe/RH/jkDKqJAmk 1SDYJ16EQAr4l9FernOR2mXvNEe2+u4Y+Lp+onjJXW0U42qUTYoh5n475pYzOhDX8O 9SonaSBaR1KO6pFDa47JLNuaqPsul70lD8aZpMd1KLW1BCJjlqS2W3dTgpYHW8arEy 6+dKWqlByMk6w== 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: Tue, 23 May 2023 06:47:34 -0600 Cc: "pgsql-admin@lists.postgresql.org" , Matti Linnanvuori Content-Transfer-Encoding: quoted-printable Message-Id: 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 2:46 AM, Phani Prathyush Somayajula = wrote: >=20 > What's wrong with partitioning by placedon, with a primary key of = (betid, placedon)? - this is because the business need to run group by = queries based on these brands. For now, there are 4 brands and in future = it could go up to 7. How does a primary key of (betid, placedon) instead of betid interfere = with that?=