Re: constraint exclusion and nulls in IN (..) clause

Amit Langote <langote_amit_f8@lab.ntt.co.jp>

From: Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>
To: emre@hasegeli.com
Cc: Ashutosh Bapat <ashutosh.bapat@enterprisedb.com>, Pg Hackers <pgsql-hackers@postgresql.org>
Date: 2018-03-06T10:20:10Z
Lists: pgsql-hackers
On 2018/03/06 19:16, Emre Hasegeli wrote:
>> Hmm, state->next refers to two different pointer values on line 1 and line
>> 2.  It may end up being set to NULL on line 1.  Am I missing something?
> 
> True, lnext(state->next) can set it to NULL.  I confused by the below
> code on the same function doing the steps in reverse order.  With this
> cleared, I have nothing else to say, so I am setting this to ready for
> committer.

Thanks. :)

Regards,
Amit



Commits

  1. Improve predtest.c's handling of cases with NULL-constant inputs.