Magnus Hagander <magnus(at)hagander(dot)net> writes:
> Tom Lane wrote:
>> Why not declare it with OUT parameters, instead?
> That does sound like a very good idea... I did notice that as being a
> problem, but didn't know how to fix it without thinking more :-)
> How do I do that in pg_proc.h? Is there some other function that does
> this that I can peek at for inspiration?
Sure, see pg_timezone_abbrevs(), pg_timezone_names().
(This only started to work recently, which is why we have so many
record-returning functions that don't do it that way. It might be
an idea to fix them all sooner or later.)
regards, tom lane
In response to
Responses
pgsql-hackers by date
| Next: | From: Magnus Hagander | Date: 2008-05-07 21:26:37 |
| Subject: Re: Posting to hackers and patches lists |
| Previous: | From: steve layland | Date: 2008-05-07 21:10:44 |
| Subject: Re: [pgsql-hackers] Posting to hackers and patches lists [OT] |
pgsql-committers by date
| Next: | From: Alvaro Herrera | Date: 2008-05-07 22:06:11 |
| Subject: pgsql: Add Simon Riggs' email address. |
| Previous: | From: Alvaro Herrera | Date: 2008-05-07 18:48:40 |
| Subject: pgsql: Add Simon Riggs' email address. |