Re: Thread-safe getopt()

From: Heikki Linnakangas <hlinnaka(at)iki(dot)fi>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Peter Eisentraut <peter(at)eisentraut(dot)org>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Thread-safe getopt()
Date: 2026-03-30 17:50:34
Message-ID: 3a8e30b5-717d-436a-9a36-8690a92349e2@iki.fi
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 30/03/2026 17:54, Tom Lane wrote:
> Heikki Linnakangas <hlinnaka(at)iki(dot)fi> writes:
>> Thread-local variables would work too, but I think we'd need to give
>> them different names anyway to avoid conflicting with the plain getopt()
>> global variables.
>
> Oh, excellent point. I was thinking the change could be purely local to
> getopt.c, but that probably wouldn't work because some of them are in
> the visible API.

Committed, thanks.

- Heikki

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Nathan Bossart 2026-03-30 18:00:07 Re: remove bits* types
Previous Message Dagfinn Ilmari Mannsåker 2026-03-30 17:36:48 Re: remove bits* types