Commit 50e3c60b authored by Hiroshi Inoue's avatar Hiroshi Inoue

Avoid 'FATAL: out of free buffers: time to abort !" error

during WAL recovery.  Recovery failure is always serious.
parent b200d099
......@@ -198,6 +198,8 @@ XLogReadBuffer(bool extend, Relation reln, BlockNumber blkno)
Assert(InRecovery);
while (lastblock <= blkno)
{
if (buffer != InvalidBuffer)
ReleaseBuffer(buffer); /* must be WriteBuffer()? */
buffer = ReadBuffer(reln, P_NEW);
lastblock++;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment