Re: [HACKERS] Same expression more than once in partition key - Mailing list pgsql-hackers

From Tom Lane
Subject Re: [HACKERS] Same expression more than once in partition key
Date
Msg-id 7154.1498248288@sss.pgh.pa.us
Whole thread Raw
In response to Re: [HACKERS] Same expression more than once in partition key  (Peter Eisentraut <peter.eisentraut@2ndquadrant.com>)
Responses Re: [HACKERS] Same expression more than once in partition key  (Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>)
Re: [HACKERS] Same expression more than once in partition key  (Robert Haas <robertmhaas@gmail.com>)
List pgsql-hackers
Peter Eisentraut <peter.eisentraut@2ndquadrant.com> writes:
> We also allow the same column more than once in an index.  We probably
> don't have to be more strict here.

There actually are valid uses for the same column more than once in
an index, eg if you use a different operator class for each instance.
I find it hard to envision a similar use-case in partitioning though.
        regards, tom lane



pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: [HACKERS] REPLICA IDENTITY FULL
Next
From: Alvaro Herrera
Date:
Subject: Re: [HACKERS] pg_terminate_backend can terminate background workersand autovacuum launchers