Re: Thread-unsafe coding in ecpg
От | Michael Meskes |
---|---|
Тема | Re: Thread-unsafe coding in ecpg |
Дата | |
Msg-id | d441f5913b147e5b3e0eed4647f9839d926d90fc.camel@postgresql.org обсуждение исходный текст |
Ответ на | Re: Thread-unsafe coding in ecpg (Tom Lane <tgl@sss.pgh.pa.us>) |
Ответы |
Re: Thread-unsafe coding in ecpg
|
Список | pgsql-hackers |
> > The question is, what do we do on those platforms? Use setlocale() > > or > > fallback to (a) and document that ecpg has to run in a C locale? > > No, we shouldn't use setlocale(), because it clearly is hazardous > even on platforms where it doesn't fail outright. I don't see > anything so wrong with just documenting the hazard. The situation Actually I meant using setlocale() and documenting that it must not be used with threads, or document it must not be used with locales? Michael -- Michael Meskes Michael at Fam-Meskes dot De, Michael at Meskes dot (De|Com|Net|Org) Meskes at (Debian|Postgresql) dot Org Jabber: michael at xmpp dot meskes dot org VfL Borussia! Força Barça! SF 49ers! Use Debian GNU/Linux, PostgreSQL
В списке pgsql-hackers по дате отправления: