Re: [HACKERS] [9.5] possible fast path for pinning a page multiple times

2014-05-25 Thread Tom Lane
Jeff Davis writes: > Idea: > Let's say we have a routine PinBufferTag, that's like PinBuffer but it > takes an additional BufferTag argument. When it locks the buffer header, > it would also compare the argument to the buffer's tag, and if they > don't match, return a status indicating that it's

[HACKERS] [9.5] possible fast path for pinning a page multiple times

2014-05-25 Thread Jeff Davis
Context: A patch from a while ago was rejected: http://www.postgresql.org/message-id/1369886097.23418.0.camel@jdavis Most of the objection seemed to be that extra page pins might happen in some circumstances, such as this one mentioned by Heikki: http://www.postgresql.org/message-id/50fd11c5.10