Re: [BUGS] BUG #1044: snprintf() shipped with PostgreSQL is not thread safe

2004-01-08 Thread Tom Lane
Bruce Momjian <[EMAIL PROTECTED]> writes: > What we could do is to throw a compile #error if you hit our own > snprintf() and are compiling with threads enabled. Good thought. If we get any complaints then we can reconsider applying this patch, otherwise there's no need.

Re: [BUGS] BUG #1044: snprintf() shipped with PostgreSQL is not thread safe

2004-01-08 Thread Tom Lane
"PostgreSQL Bugs List" <[EMAIL PROTECTED]> writes: > Some OSes lack proper snprintf()/vsnprintf() fuctions so PostgreSQL includes > its own version (src/port/snprintf.c) during building. Unfortunately, this > version of snprintf() is not reentrant (it uses global vars to keep internal > state),