]> git.ipfire.org Git - thirdparty/postgresql.git/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 21:00:40 +0000 (17:00 -0400)
commitf6d6b7b1e7eac2aa049bbb1e41c468fbbf5b7fef
treeb975cae38fb0b0bf5b03396f3c5d4d8051ff4c32
parent0cf16686bcc97c9be083880617625bac3c088803
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