relkind check in DefineIndex

From: Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>
To: Pg Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: relkind check in DefineIndex
Date: 2017-10-13 16:38:20
Message-ID: 20171013163820.pai7djcaxrntaxtn@alvherre.pgsql
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

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.

--
Álvaro Herrera https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services

Attachment Content-Type Size
0001-reword-kind-check-using-switch.patch text/plain 1.7 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Geoghegan 2017-10-13 16:38:54 Re: [COMMITTERS] pgsql: Fix traversal of half-frozen update chains
Previous Message Alvaro Herrera 2017-10-13 16:34:49 Re: [COMMITTERS] pgsql: Implement table partitioning.