pgsql: Don't prematurely free the BufferAccessStrategy in pgstat_heap()

Поиск
Список
Период
Сортировка
От Noah Misch
Тема pgsql: Don't prematurely free the BufferAccessStrategy in pgstat_heap()
Дата
Msg-id E1X1imE-0006nJ-Mj@gemulon.postgresql.org
обсуждение исходный текст
Список 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_2_STABLE

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

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


В списке pgsql-committers по дате отправления:

Предыдущее
От: Noah Misch
Дата:
Сообщение: pgsql: Don't prematurely free the BufferAccessStrategy in pgstat_heap()
Следующее
От: Bruce Momjian
Дата:
Сообщение: pgsql: pg_upgrade: update C comments about pg_dumpall