pgsql: Don't prematurely free the BufferAccessStrategy in pgstat_heap() - Mailing list pgsql-committers

From Noah Misch
Subject pgsql: Don't prematurely free the BufferAccessStrategy in pgstat_heap()
Date
Msg-id E1X1imE-0006nG-Me@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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.

Branch
------
REL9_3_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/f14e4085215b6d71a54f10932f680ae60d8619b3

Modified Files
--------------
contrib/pgstattuple/pgstattuple.c |   13 +++++--------
1 file changed, 5 insertions(+), 8 deletions(-)


pgsql-committers by date:

Previous
From: Noah Misch
Date:
Subject: pgsql: Don't prematurely free the BufferAccessStrategy in pgstat_heap()
Next
From: Noah Misch
Date:
Subject: pgsql: Don't prematurely free the BufferAccessStrategy in pgstat_heap()