Re: Partitioned Table Index Column Order - Mailing list pgsql-general

From Tom Lane
Subject Re: Partitioned Table Index Column Order
Date
Msg-id 2550776.1624492614@sss.pgh.pa.us
Whole thread Raw
In response to Re: Partitioned Table Index Column Order  (David Rowley <dgrowleyml@gmail.com>)
Responses Re: Partitioned Table Index Column Order  (David Rowley <dgrowleyml@gmail.com>)
List pgsql-general
David Rowley <dgrowleyml@gmail.com> writes:
> On Thu, 24 Jun 2021 at 10:55, Alvaro Herrera <alvherre@alvh.no-ip.org> wrote:
>> It is not relevant from the partitioning point of view.  Other factors
>> can be used to decide the column order.

> I'm not so sure that's really 100% true.  There is at least one
> partitioning feature that will work when the partitioning column is
> first and won't when it's not.
> Ordered partition scans work with RANGE and LIST partitioning:

Sure, but is that any different from the behavior with unpartitioned
tables?  You have to make the index column order agree with the
ORDER BY you want to use, in either case.

            regards, tom lane



pgsql-general by date:

Previous
From: David Rowley
Date:
Subject: Re: Partitioned Table Index Column Order
Next
From: Tom Lane
Date:
Subject: Re: Psql wants to use IP6 when connecting to self using tcp...