| From: | Chao Li <li(dot)evan(dot)chao(at)gmail(dot)com> |
|---|---|
| To: | Fujii Masao <masao(dot)fujii(at)gmail(dot)com> |
| Cc: | Xuneng Zhou <xunengzhou(at)gmail(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org> |
| Subject: | Re: Ensure temporary files are unlinked on errors in pg_receivewal |
| Date: | 2026-11-24 23:08:53 |
| Message-ID: | 75C32AB7-6BAD-4365-9CF8-196731A6CA0F@gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
> On Nov 24, 2026, at 22:39, Fujii Masao <masao(dot)fujii(at)gmail(dot)com> wrote:
>
> On Mon, Nov 23, 2026 at 6:13 PM Xuneng Zhou <xunengzhou(at)gmail(dot)com> wrote:
>>> This patch moves the CLOSE_UNLINK handling into the common cleanup path
>
> Thanks for the patch!
>
>> + int unlink_result = unlink(df->fullpath);
>>
>> We could save the variable assignment here if you want. Otherwise, LGTM.
>
> +1. Attached is v2 with that change, along with a backpatch version for v15.
>
> Barring any objections, I will commit the patch.
>
> Regards,
>
> --
> Fujii Masao
> <v2-0001-pg_receivewal-pg_basebackup-Fix-temporary-file-cl.patch><nocfbot-v2-0001-pg_receivewal-pg_basebackup-Fix-temporary-file-cl-v15.patch>
Both v2 and the back-patch version look good to me.
Best regards,
--
Chao Li (Evan)
HighGo Software Co., Ltd.
https://www.highgo.com/
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Masahiko Sawada | 2026-11-24 23:11:22 | Re: Why is the LSN reported for pg_logical_emit_message() different from other decoded operations? |
| Previous Message | Peter Smith | 2026-11-24 22:37:00 | Re: Include schema-qualified names in publication error messages (generalised to all of LR). |