pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Fix VM buffer pin management in heap_lock_updated_tuple_rec(). 3+ messages / 1 participants [nested] [flat]
* pgsql: Fix VM buffer pin management in heap_lock_updated_tuple_rec(). @ 2018-03-02 22:41 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 3+ messages in thread From: Tom Lane @ 2018-03-02 22:41 UTC (permalink / raw) To: pgsql-committers Fix VM buffer pin management in heap_lock_updated_tuple_rec(). Sloppy coding in this function could lead to leaking a VM buffer pin, or to attempting to free the same pin twice. Repair. While at it, reduce the code's tendency to free and reacquire the same page pin. Back-patch to 9.6; before that, this routine did not concern itself with VM pages. Amit Kapila and Tom Lane Discussion: https://postgr.es/m/CAA4eK1KJKwhc=isgTQHjM76CAdVswzNeAuZkh_cx-6QgGkSEgA@mail.gmail.com Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/0b1d1a038babff4aadf0862c28e7b667f1b12a30 Modified Files -------------- src/backend/access/heap/heapam.c | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) ^ permalink raw reply [nested|flat] 3+ messages in thread
* pgsql: Fix VM buffer pin management in heap_lock_updated_tuple_rec(). @ 2018-03-02 22:41 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 3+ messages in thread From: Tom Lane @ 2018-03-02 22:41 UTC (permalink / raw) To: pgsql-committers Fix VM buffer pin management in heap_lock_updated_tuple_rec(). Sloppy coding in this function could lead to leaking a VM buffer pin, or to attempting to free the same pin twice. Repair. While at it, reduce the code's tendency to free and reacquire the same page pin. Back-patch to 9.6; before that, this routine did not concern itself with VM pages. Amit Kapila and Tom Lane Discussion: https://postgr.es/m/CAA4eK1KJKwhc=isgTQHjM76CAdVswzNeAuZkh_cx-6QgGkSEgA@mail.gmail.com Branch ------ REL9_6_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/96d2df840b0669aad6792b459805367ba70641af Modified Files -------------- src/backend/access/heap/heapam.c | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) ^ permalink raw reply [nested|flat] 3+ messages in thread
* pgsql: Fix VM buffer pin management in heap_lock_updated_tuple_rec(). @ 2018-03-02 22:41 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 3+ messages in thread From: Tom Lane @ 2018-03-02 22:41 UTC (permalink / raw) To: pgsql-committers Fix VM buffer pin management in heap_lock_updated_tuple_rec(). Sloppy coding in this function could lead to leaking a VM buffer pin, or to attempting to free the same pin twice. Repair. While at it, reduce the code's tendency to free and reacquire the same page pin. Back-patch to 9.6; before that, this routine did not concern itself with VM pages. Amit Kapila and Tom Lane Discussion: https://postgr.es/m/CAA4eK1KJKwhc=isgTQHjM76CAdVswzNeAuZkh_cx-6QgGkSEgA@mail.gmail.com Branch ------ REL_10_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/76ec45756644e5d46301ee292f8f951f9f835fae Modified Files -------------- src/backend/access/heap/heapam.c | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) ^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2018-03-02 22:41 UTC | newest] Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2018-03-02 22:41 pgsql: Fix VM buffer pin management in heap_lock_updated_tuple_rec(). Tom Lane <tgl@sss.pgh.pa.us> 2018-03-02 22:41 pgsql: Fix VM buffer pin management in heap_lock_updated_tuple_rec(). Tom Lane <tgl@sss.pgh.pa.us> 2018-03-02 22:41 pgsql: Fix VM buffer pin management in heap_lock_updated_tuple_rec(). Tom Lane <tgl@sss.pgh.pa.us>
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox