From: Alvaro Herrera <alvherre@alvh.no-ip.org>
To: Rumpi Gravenstein <rgravens@gmail.com>
Cc: PostgreSQL <pgsql-general@lists.postgresql.org>
Subject: Re: Partitioned Table Index Column Order
Date: Wed, 23 Jun 2021 18:55:40 -0400
Message-ID: <202106232255.3gmtpm5lzc2p@alvherre.pgsql> (raw)
In-Reply-To: <CAEpg1wCbZJCCYL0cesn00bCGdOsB0Q66_-3O=2TSwqGDiD-Zow@mail.gmail.com>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: alvherre@alvh.no-ip.org, rgravens@gmail.com
Subject: Re: Partitioned Table Index Column Order
In-Reply-To: <202106232255.3gmtpm5lzc2p@alvherre.pgsql>
References: <CAEpg1wCbZJCCYL0cesn00bCGdOsB0Q66_-3O=2TSwqGDiD-Zow@mail.gmail.com> <202106232255.3gmtpm5lzc2p@alvherre.pgsql>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox