Re: Assorted Win32 error handling fixes (CreateThread, pgwin32_select, pg_usleep)

From: Heikki Linnakangas <hlinnaka(at)iki(dot)fi>
To: Sehrope Sarkuni <sehrope(at)jackdb(dot)com>, Pg Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Assorted Win32 error handling fixes (CreateThread, pgwin32_select, pg_usleep)
Date: 2026-10-15 09:35:36
Message-ID: 6e54e40a-dfd8-44b7-b7b4-1598cfe031f7@iki.fi
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 29/08/2026 22:51, Sehrope Sarkuni wrote:
> Attached is v2, rebased over master. Only 0003 changed to remove a
> declaration it had as context. The fixes are identical to v1.
>
> Of the four, only 0001 has any practical server impact. If CreateThread
> fails, every timer-based timeout in that process is silently disabled
> for the rest of its lifetime. 0002 can hang pg_test_fsync. 0003 and
> 0004 are defensive fixes with no reachable in-core trigger.

Committed the CreateThread fixes, patches 0001 and 0002. Thanks. Didn't
look at the others.

- Heikki

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Heikki Linnakangas 2026-10-15 09:36:12 Re: [PATCH] pg_test_fsync: close Windows alarm thread handles
Previous Message solai v 2026-10-15 09:28:00 Re: Add TOAST statistics columns to pg_stat_all_tables