Great. That old code was a mess.
---------------------------------------------------------------------------
Tom Lane wrote:
> Log Message:
> -----------
> Convert pg_stat_get_backend_idset to use the existing SRF support.
> This seems the cleanest way of fixing its lack of a shutdown callback,
> which was preventing it from working correctly in a query that didn't
> run it to completion. Per bug report from Szima G�bor.
>
> Tags:
> ----
> REL7_4_STABLE
>
> Modified Files:
> --------------
> pgsql-server/src/backend/utils/adt:
> pgstatfuncs.c (r1.17 -> r1.17.2.1)
>
(http://developer.postgresql.org/cvsweb.cgi/pgsql-server/src/backend/utils/adt/pgstatfuncs.c.diff?r1=1.17&r2=1.17.2.1)
>
> ---------------------------(end of broadcast)---------------------------
> TIP 8: explain analyze is your friend
>
--
Bruce Momjian | http://candle.pha.pa.us
pgman@candle.pha.pa.us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073