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 1lwBmk-0001JL-Uq for pgsql-general@arkaria.postgresql.org; Wed, 23 Jun 2021 22:55:55 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lwBmi-0002jd-NA for pgsql-general@arkaria.postgresql.org; Wed, 23 Jun 2021 22:55:52 +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 1lwBmh-0002jV-Lv for pgsql-general@lists.postgresql.org; Wed, 23 Jun 2021 22:55:52 +0000 Received: from wout1-smtp.messagingengine.com ([64.147.123.24]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lwBmd-0004mK-OX for pgsql-general@lists.postgresql.org; Wed, 23 Jun 2021 22:55:51 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id B85DE23EC; Wed, 23 Jun 2021 18:55:43 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Wed, 23 Jun 2021 18:55:43 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:subject:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; bh=MOPdXRO/afpFgKAIdN3K8IUhIA57sso3leaDzaCtguw=; b=pTkk8lm1 UlHNxwZ0gAQjYQt0cecTuAFGtpkVE59eb+M7uiXLKIHHzieMsZGsteScK0ickkBc Hj0oIW/eza+P+SUQ6+0qnloNVJPOyV9lxovdQNZbV16HaWzlzAVZ9CJykjFNG3Yb VY8YUb0ARXECByWWYONLrYhI5yAkZNUSkGGmPDbC2L4lxABYpIBhd6Mb//PUH//U vkoY/Pp8A+BdT/40z914WQG8+9WLSQ6A9Jhhnj8M5dgoCovJiV13HJEewR3iyLiM 8RE/0xkQItg9GhAMKUinI/P7Rlp/UmNsONtlSpLUCoew0SsxXkQOKNALrS8o+FVb fDOW+f2ULYe5ig== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrfeeggedgudefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvffukfggtggugfgjsehtkeertddttddunecuhfhrohhmpeetlhhvrghr ohcujfgvrhhrvghrrgcuoegrlhhvhhgvrhhrvgesrghlvhhhrdhnohdqihhprdhorhhgqe enucggtffrrghtthgvrhhnpeeggeevveffveejffdutefhvddtgeeghffhgfeuhfefjeei gfevhfefleevtdduteenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrih hlfhhrohhmpegrlhhvhhgvrhhrvgesrghlvhhhrdhnohdqihhprdhorhhg X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 23 Jun 2021 18:55:42 -0400 (EDT) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 13A862A0ADA; Wed, 23 Jun 2021 18:55:40 -0400 (-04) Date: Wed, 23 Jun 2021 18:55:40 -0400 From: Alvaro Herrera To: Rumpi Gravenstein Cc: PostgreSQL Subject: Re: Partitioned Table Index Column Order Message-ID: <202106232255.3gmtpm5lzc2p@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2021-Jun-23, Rumpi Gravenstein wrote: > As a best practice is it better to create the primary key starting or > ending with the partition column? It is not relevant from the partitioning point of view. Other factors can be used to decide the column order. -- Álvaro Herrera Valdivia, Chile