Re: [HACKERS] pageinspect option to forgo buffer locking? - Mailing list pgsql-hackers

From Peter Geoghegan
Subject Re: [HACKERS] pageinspect option to forgo buffer locking?
Date
Msg-id CAH2-Wzkv5hD7SYpVSuLSx4GMZqopY1=21iKQi4SrMJiT4Q7P3Q@mail.gmail.com
Whole thread Raw
In response to [HACKERS] pageinspect option to forgo buffer locking?  (Andres Freund <andres@anarazel.de>)
List pgsql-hackers
On Thu, Nov 9, 2017 at 9:49 AM, Andres Freund <andres@anarazel.de> wrote:
> Currently the locking in get_raw_page_internal() prevents that.  If it's
> an option defaulting to off, I don't see why we couldn't allow that to
> skip locking the page's contents. Obviously you can get corrupted
> contents that way, but we already allow to pass arbitrary stuff to
> heap_page_items().  Since pinning wouldn't be changed, there's no danger
> of the page being moved out from under us.

+1. I've done things like this before myself.


-- 
Peter Geoghegan


-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

pgsql-hackers by date:

Previous
From: Andres Freund
Date:
Subject: [HACKERS] pageinspect option to forgo buffer locking?
Next
From: Joe Conway
Date:
Subject: Re: [HACKERS] libpq connection strings: control over the ciphersuites?