Re: Returning NULL to a set returning C type function

From: Bborie Park <bkpark(at)ucdavis(dot)edu>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Returning NULL to a set returning C type function
Date: 2011-05-11 19:09:21
Message-ID: 4DCADEE1.6090901@ucdavis.edu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

> Don't do that ;-). You could choose either to not return any row
> at all when this happens, or to construct an all-nulls row to return.
> ExecMakeTableFunctionResult doesn't want to guess which behavior is
> appropriate for your use-case, so it just complains.
>
> regards, tom lane
>

Thanks Tom. I'll go the "no return any row" route.

--
Bborie Park
Programmer
Center for Vectorborne Diseases
UC Davis
530-752-8380
bkpark(at)ucdavis(dot)edu

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Robert Haas 2011-05-11 19:39:05 Re: [GENERAL] postgresql-8.4 error -> BUG
Previous Message David Johnston 2011-05-11 18:59:51 Re: Regexp match not working.. (SQL help)