| From: | Sergey Soloviev <sergey(dot)soloviev(at)tantorlabs(dot)ru> |
|---|---|
| To: | pgsql-hackers(at)lists(dot)postgresql(dot)org |
| Subject: | [PATCH] Do not flush BufFile for regular temp files |
| Date: | 2026-07-16 09:26:35 |
| Message-ID: | d01c9594-d3e5-42bb-8459-d91ab998966c@tantorlabs.ru |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | 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 | Content-Type | Size |
|---|---|---|
| 0001-Do-not-flush-BufFile-for-regular-temp-files.patch | text/x-patch | 1.1 KB |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Akshay Joshi | 2026-07-16 09:30:28 | Re: [PATCH] Add pg_get_table_ddl() to reconstruct CREATE TABLE statements |
| Previous Message | Ilia Evdokimov | 2026-07-16 09:18:56 | Re: Is there value in having optimizer stats for joins/foreignkeys? |