]> granicus.if.org Git - postgresql/commit
Don't prematurely free the BufferAccessStrategy in pgstat_heap().
authorNoah Misch <noah@leadboat.com>
Mon, 30 Jun 2014 20:59:19 +0000 (16:59 -0400)
committerNoah Misch <noah@leadboat.com>
Mon, 30 Jun 2014 20:59:44 +0000 (16:59 -0400)
commit37a4d3d70617f574b9a3dd5af079430b24817333
tree1823552a3c6f2b888941cef09ffad884f0468d07
parent6ad903d70a440eb0fbe0b33ceb87a8b0a81cb240
Don't prematurely free the BufferAccessStrategy in pgstat_heap().

This function continued to use it after heap_endscan() freed it.  In
passing, don't explicit create a strategy here.  Instead, use the one
created by heap_beginscan_strat(), if any.  Back-patch to 9.2, where use
of a BufferAccessStrategy here was introduced.
contrib/pgstattuple/pgstattuple.c