Re: SEGV in contrib/array/array_iterator.c - Mailing list pgsql-bugs

From Tom Lane
Subject Re: SEGV in contrib/array/array_iterator.c
Date
Msg-id 27429.1017778925@sss.pgh.pa.us
Whole thread Raw
In response to Re: SEGV in contrib/array/array_iterator.c  (Stephan Szabo <sszabo@megazone23.bigpanda.com>)
Responses Re: SEGV in contrib/array/array_iterator.c  (Stephan Szabo <sszabo@megazone23.bigpanda.com>)
List pgsql-bugs
Stephan Szabo <sszabo@megazone23.bigpanda.com> writes:
> Are the array iterator functions supposed to act sort of like
> =ANY/=ALL except across an array instead of a subselect?

Seems like a reasonable definition.

> If so,
> isStrict probably isn't right, since for an empty subselect the return
> value does not depend on the element being searched for.

Hm ... isn't it NULL anyway, if the left side is NULL?

But if you're right, then the correct fix involves updating the
functions to V1 calling conventions, so that they can make a correct
test for NULL inputs (rather than bogusly checking for zero value).

            regards, tom lane

pgsql-bugs by date:

Previous
From: Stephan Szabo
Date:
Subject: Re: SEGV in contrib/array/array_iterator.c
Next
From: Stephan Szabo
Date:
Subject: Re: SEGV in contrib/array/array_iterator.c