Skip site navigation (1) Skip section navigation (2)

Re: pgsql: Make the pg_stat_activity view call a SRF

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 (view raw or flat)
Thread:
Lists: pgsql-committerspgsql-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

In response to

Responses

pgsql-hackers by date

Next:From: Magnus HaganderDate: 2008-05-07 21:26:37
Subject: Re: Posting to hackers and patches lists
Previous:From: steve laylandDate: 2008-05-07 21:10:44
Subject: Re: [pgsql-hackers] Posting to hackers and patches lists [OT]

pgsql-committers by date

Next:From: Alvaro HerreraDate: 2008-05-07 22:06:11
Subject: pgsql: Add Simon Riggs' email address.
Previous:From: Alvaro HerreraDate: 2008-05-07 18:48:40
Subject: pgsql: Add Simon Riggs' email address.

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group