[PATCH] Do not flush BufFile for regular temp files - Mailing list pgsql-hackers

From Sergey Soloviev
Subject [PATCH] Do not flush BufFile for regular temp files
Date
Msg-id d01c9594-d3e5-42bb-8459-d91ab998966c@tantorlabs.ru
Whole thread
List pgsql-hackers
Hi, hackers!

I have noticed that when we call BufFileClose, then we flush any remaining data
to file unconditionally. But when we use regular temp files (BufFileCreateTemp),
then the file is deleted on close and that flush was useless.

There is simple patch checking whether we should flush data or not.

---
Sergey Soloviev

TantorLabs: https://tantorlabs.com

Attachment

pgsql-hackers by date:

Previous
From: Ilia Evdokimov
Date:
Subject: Re: Is there value in having optimizer stats for joins/foreignkeys?
Next
From: Akshay Joshi
Date:
Subject: Re: [PATCH] Add pg_get_table_ddl() to reconstruct CREATE TABLE statements