Re: Thread-safe getopt() - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Thread-safe getopt()
Date
Msg-id 2008737.1774882451@sss.pgh.pa.us
Whole thread Raw
In response to Re: Thread-safe getopt()  (Heikki Linnakangas <hlinnaka@iki.fi>)
Responses Re: Thread-safe getopt()
List pgsql-hackers
Heikki Linnakangas <hlinnaka@iki.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.

            regards, tom lane



pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: pg_plan_advice
Next
From: Tom Lane
Date:
Subject: Re: [PATCH] Add support for INSERT ... SET syntax