Re: [HACKERS] relkind check in DefineIndex - Mailing list pgsql-hackers

From Amit Langote
Subject Re: [HACKERS] relkind check in DefineIndex
Date
Msg-id 0350c2ea-f228-eec2-49e8-199e00df07c3@lab.ntt.co.jp
Whole thread Raw
In response to Re: [HACKERS] relkind check in DefineIndex  (Robert Haas <robertmhaas@gmail.com>)
Responses Re: [HACKERS] relkind check in DefineIndex
List pgsql-hackers
On 2017/10/14 4:32, Robert Haas wrote:
> On Fri, Oct 13, 2017 at 12:38 PM, Alvaro Herrera
> <alvherre@2ndquadrant.com> wrote:
>> The relkind check in DefineIndex has grown into an ugly rats nest of
>> 'if' statements.  I propose to change it into a switch, as per the
>> attached.
> 
> wfm

+1

Thanks,
Amit



-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

pgsql-hackers by date:

Previous
From: Ashutosh Bapat
Date:
Subject: Re: [HACKERS] How does postgres store the join predicate for arelation in a given query
Next
From: Jeevan Chalke
Date:
Subject: Re: [HACKERS] Partition-wise aggregation/grouping