Re: unreachable code in partition.c

From: Robert Haas <robertmhaas(at)gmail(dot)com>
To: Jeevan Ladhe <jeevan(dot)ladhe(at)enterprisedb(dot)com>
Cc: PostgreSQL Developers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: unreachable code in partition.c
Date: 2017-05-24 20:46:36
Message-ID: CA+TgmoaX0dkvSogB7QbAka63C6cXV2_o6uxNZi0137QOsqNjTA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Tue, May 23, 2017 at 2:06 PM, Jeevan Ladhe
<jeevan(dot)ladhe(at)enterprisedb(dot)com> wrote:
> Following code in function get_qual_for_list(partition.c) is not reachable.
>
> else
> result = list_make1(opexpr);
>
> Attached is the patch that removes this dead code.

Committed, but I added an Assert() as future-proofing.

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Robert Haas 2017-05-24 22:09:21 Re: [PATCH v1] Add and report the new "in_hot_standby" GUC pseudo-variable.
Previous Message Amit Kapila 2017-05-24 20:40:00 Re: retry shm attach for windows (WAS: Re: OK, so culicidae is *still* broken)