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 1q15QW-0000Qe-W8 for pgsql-admin@arkaria.postgresql.org; Mon, 22 May 2023 13:18:17 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1q15QV-00016c-IU for pgsql-admin@arkaria.postgresql.org; Mon, 22 May 2023 13:18:15 +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 1q15QV-00016S-5z for pgsql-admin@lists.postgresql.org; Mon, 22 May 2023 13:18:15 +0000 Received: from mailout.easymail.ca ([64.68.200.34]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1q15QN-001OXh-Il for pgsql-admin@lists.postgresql.org; Mon, 22 May 2023 13:18:14 +0000 Received: from localhost (localhost [127.0.0.1]) by mailout.easymail.ca (Postfix) with ESMTP id 5F09DEA3FD; Mon, 22 May 2023 13:18:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=elevated-dev.com; s=easymail; t=1684761485; bh=CUUcDfGbN/xhuCMyKE5kjB83Us+hp+c29HbUpWqCOO4=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From; b=jws40SUm8fHCuf5q8nVQ5M1d4wb4rWTlZpa1EczaqKYjDMETXmas2j1ppcQxZn69S cOw0Dy38OG6skHARlBwrPMp3AYjYpt341/71jk0RMF23cuPrtVGiQKgebHUeSISR0D 6aRSC08PNr5thkn/VV5Z7DcIHUb8rjLvbyGQpa5My1x9p8cUz12+vb0qy4rP7xNThk V482dn+SS3scEYF80FQfAh5x23sFctm/LMd3Edlb/5ujkC6zDOg/7CAP+ATIYUatnq FhzgJJswLYPSwnt8YDwf0dJfgum2DdxK1yM+M9IwV+u7iihckWWQ/lHg6IEyUgrAQ8 JsMa7N4AFdNdQ== X-Virus-Scanned: Debian amavisd-new at emo08-pco.easydns.vpn Received: from mailout.easymail.ca ([127.0.0.1]) by localhost (emo08-pco.easydns.vpn [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id nBavZLbt5MAT; Mon, 22 May 2023 13:18:05 +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 CC233EA3C0; Mon, 22 May 2023 13:18:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=elevated-dev.com; s=easymail; t=1684761485; bh=CUUcDfGbN/xhuCMyKE5kjB83Us+hp+c29HbUpWqCOO4=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From; b=jws40SUm8fHCuf5q8nVQ5M1d4wb4rWTlZpa1EczaqKYjDMETXmas2j1ppcQxZn69S cOw0Dy38OG6skHARlBwrPMp3AYjYpt341/71jk0RMF23cuPrtVGiQKgebHUeSISR0D 6aRSC08PNr5thkn/VV5Z7DcIHUb8rjLvbyGQpa5My1x9p8cUz12+vb0qy4rP7xNThk V482dn+SS3scEYF80FQfAh5x23sFctm/LMd3Edlb/5ujkC6zDOg/7CAP+ATIYUatnq FhzgJJswLYPSwnt8YDwf0dJfgum2DdxK1yM+M9IwV+u7iihckWWQ/lHg6IEyUgrAQ8 JsMa7N4AFdNdQ== Content-Type: text/plain; charset=utf-8 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: Mon, 22 May 2023 07:17:53 -0600 Cc: Matti Linnanvuori , "pgsql-admin@lists.postgresql.org" Content-Transfer-Encoding: quoted-printable Message-Id: <9558F0D3-4B5B-4CE2-A27F-156149E75916@elevated-dev.com> References: <404AADDB-83F9-4A4A-B6D7-E736C278EFDA@portalify.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 22, 2023, at 1:02 AM, Phani Prathyush Somayajula = wrote: >=20 > Hello! > The following limitations apply to partitioned tables: > =E2=80=A2=20 > To create a unique or primary key constraint on a partitioned table, = the partition keys must not include any expressions or function calls = and the constraint's columns must include all of the partition key = columns. Your choices: 1) Deal with reality: have placedon as part of the primary key 2) don't partition on it, index placedon 3) don't partition on it, index (brandid, playerid, placedon)