Re: relkind check in DefineIndex

From: Amit Langote <Langote_Amit_f8(at)lab(dot)ntt(dot)co(dot)jp>
To: Robert Haas <robertmhaas(at)gmail(dot)com>, Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>
Cc: Pg Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: relkind check in DefineIndex
Date: 2017-10-16 05:56:06
Message-ID: 0350c2ea-f228-eec2-49e8-199e00df07c3@lab.ntt.co.jp
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 2017/10/14 4:32, Robert Haas wrote:
> On Fri, Oct 13, 2017 at 12:38 PM, Alvaro Herrera
> <alvherre(at)2ndquadrant(dot)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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Jeevan Chalke 2017-10-16 06:17:22 Re: Partition-wise aggregation/grouping
Previous Message Ashutosh Bapat 2017-10-16 05:13:12 Re: How does postgres store the join predicate for a relation in a given query