mirror of
https://github.com/postgres/postgres.git
synced 2025-06-11 20:28:21 +03:00
Properly set relpersistence for fake relcache entries.
This can result in buffers failing to be properly flushed at checkpoint time, leading to data loss. Report, diagnosis, and patch by Jeff Davis.
This commit is contained in:
@ -271,6 +271,8 @@ ReadBufferWithoutRelcache(RelFileNode rnode, ForkNumber forkNum,
|
||||
|
||||
SMgrRelation smgr = smgropen(rnode, InvalidBackendId);
|
||||
|
||||
Assert(InRecovery);
|
||||
|
||||
return ReadBuffer_common(smgr, RELPERSISTENCE_PERMANENT, forkNum, blockNum,
|
||||
mode, strategy, &hit);
|
||||
}
|
||||
|
Reference in New Issue
Block a user