Re: [HACKERS] fix empty array expression in get_qual_for_list() - Mailing list pgsql-hackers

From Tom Lane
Subject Re: [HACKERS] fix empty array expression in get_qual_for_list()
Date
Msg-id 8897.1498488247@sss.pgh.pa.us
Whole thread Raw
In response to [HACKERS] fix empty array expression in get_qual_for_list()  (Jeevan Ladhe <jeevan.ladhe@enterprisedb.com>)
Responses Re: [HACKERS] fix empty array expression in get_qual_for_list()
List pgsql-hackers
Jeevan Ladhe <jeevan.ladhe@enterprisedb.com> writes:
> In case of list partitioned table:
> 1. If there is a partition accepting only null values and nothing else, then
> currently the partition constraints for such a partition are constructed as
> "((a IS NULL) OR (a = ANY (ARRAY[]::integer[])))".
> I think there it is better to avoid constructing an empty array to avoid
> executing ANY expression.

Looks like a good idea, pushed with trivial stylistic adjustments.
        regards, tom lane



pgsql-hackers by date:

Previous
From: Andrew Dunstan
Date:
Subject: Re: [HACKERS] intermittent failures in Cygwin from select_paralleltests
Next
From: Tom Lane
Date:
Subject: Re: [HACKERS] intermittent failures in Cygwin from select_parallel tests