mirror of
https://github.com/postgres/postgres.git
synced 2025-06-27 23:21:58 +03:00
Revert "Use "transient" files for blind writes"
This reverts commit 54d9e8c6c1
, which
caused a failure on the buildfarm. Not a good thing to have just before
a beta release.
This commit is contained in:
@ -1834,10 +1834,7 @@ BufferGetTag(Buffer buffer, RelFileNode *rnode, ForkNumber *forknum,
|
||||
* written.)
|
||||
*
|
||||
* If the caller has an smgr reference for the buffer's relation, pass it
|
||||
* as the second parameter. If not, pass NULL. In the latter case, the
|
||||
* relation will be marked as "transient" so that the corresponding
|
||||
* kernel-level file descriptors are closed when the current transaction ends,
|
||||
* if any.
|
||||
* as the second parameter. If not, pass NULL.
|
||||
*/
|
||||
static void
|
||||
FlushBuffer(volatile BufferDesc *buf, SMgrRelation reln)
|
||||
@ -1859,12 +1856,9 @@ FlushBuffer(volatile BufferDesc *buf, SMgrRelation reln)
|
||||
errcontext.previous = error_context_stack;
|
||||
error_context_stack = &errcontext;
|
||||
|
||||
/* Find smgr relation for buffer, and mark it as transient */
|
||||
/* Find smgr relation for buffer */
|
||||
if (reln == NULL)
|
||||
{
|
||||
reln = smgropen(buf->tag.rnode, InvalidBackendId);
|
||||
smgrsettransient(reln);
|
||||
}
|
||||
|
||||
TRACE_POSTGRESQL_BUFFER_FLUSH_START(buf->tag.forkNum,
|
||||
buf->tag.blockNum,
|
||||
|
Reference in New Issue
Block a user