From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Magnus Hagander <magnus(at)hagander(dot)net> |
Cc: | pgsql-committers(at)postgresql(dot)org |
Subject: | Re: pgsql: Make the pg_stat_activity view call a SRF |
Date: | 2008-05-07 21:13:56 |
Message-ID: | 18681.1210194836@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers pgsql-hackers |
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
From | Date | Subject | |
---|---|---|---|
Next Message | Alvaro Herrera | 2008-05-07 22:06:11 | pgsql: Add Simon Riggs' email address. |
Previous Message | Alvaro Herrera | 2008-05-07 18:48:40 | pgsql: Add Simon Riggs' email address. |
From | Date | Subject | |
---|---|---|---|
Next Message | Magnus Hagander | 2008-05-07 21:26:37 | Re: Posting to hackers and patches lists |
Previous Message | steve layland | 2008-05-07 21:10:44 | Re: [pgsql-hackers] Posting to hackers and patches lists [OT] |