Re: Can we get rid of TerminateThread() in pg_dump?

Thomas Munro <thomas.munro@gmail.com>

From: Thomas Munro <thomas.munro@gmail.com>
To: Jelte Fennema-Nio <postgres@jeltef.nl>
Cc: Bryan Green <dbryan.green@gmail.com>, Heikki Linnakangas <hlinnaka@iki.fi>, pgsql-hackers <pgsql-hackers@postgresql.org>, Tom Lane <tgl@sss.pgh.pa.us>, Kyotaro Horiguchi <horikyota.ntt@gmail.com>
Date: 2026-07-06T12:43:46Z
Lists: pgsql-hackers
On Tue, Jul 7, 2026 at 12:18 AM Jelte Fennema-Nio <postgres@jeltef.nl> wrote:
> On Sun, 5 Jul 2026 at 07:03, Thomas Munro <thomas.munro@gmail.com> wrote:
> > 1. If we're ready to drop VS < 2022 and GCC < 4.9, we could just use
> > <stdatomic.h> directly in frontend code (independently of the project
> > to use it in the backend)
>
> I think we are ready, see this thread[1].

W00t.

> We'd still need a MacOS version of stdatomic.h though before we could
> rely on it.

Macs have <stdatomic.h>, just not <threads.h>.



Commits

  1. Redesign handling of SIGTERM/control-C in parallel pg_dump/pg_restore.