Skip to content
Snippets Groups Projects
Commit 50e3c60b authored by Hiroshi Inoue's avatar Hiroshi Inoue
Browse files

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

during WAL recovery.  Recovery failure is always serious.
parent b200d099
No related branches found
No related tags found
No related merge requests found
......@@ -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++;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment