Excluding null return values from functions - Mailing list pgsql-general

From Jason Armstrong
Subject Excluding null return values from functions
Date
Msg-id f51cd3b20911250359r6365e12kbeaf90dca115c957@mail.gmail.com
Whole thread Raw
Responses Re: Excluding null return values from functions
List pgsql-general
How do I give a condition on the return value of a function (for
example plperl)?

I have a perl search function that returns either a bigint, or undef
if nothing is found. I want to exclude the undef/null return values
from my select statement, something like:

sql> select search(data, 'field', 'value') as result from mydata where
result is not null;

--
Jason Armstrong

pgsql-general by date:

Previous
From: Matthew Wakeling
Date:
Subject: Re: [PERFORM] Strange performance degradation
Next
From: Pavel Stehule
Date:
Subject: Re: Excluding null return values from functions