Convert pg_stat_get_backend_idset to use the existing SRF support.
Tom Lane <tgl@sss.pgh.pa.us>
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.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/utils/adt/pgstatfuncs.c | modified | +45 −29 |