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

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: BUG #1044: snprintf() shipped with PostgreSQL is not thread safe
Дата
Msg-id 6094.1073573274@sss.pgh.pa.us
обсуждение исходный текст
Ответ на BUG #1044: snprintf() shipped with PostgreSQL is not thread safe  ("PostgreSQL Bugs List" <pgsql-bugs@postgresql.org>)
Ответы Re: BUG #1044: snprintf() shipped with PostgreSQL is not thread
Re: BUG #1044: snprintf() shipped with PostgreSQL is not
Список pgsql-bugs
"PostgreSQL Bugs List" <pgsql-bugs@postgresql.org> 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), so for example running libpq-based concurrent applications (threads)
> causes libpq fuctions to fail sometimes.

What platforms have workable thread support but not snprintf?  I think
this change is not likely to accomplish much except clutter the snprintf
code ...

            regards, tom lane

В списке pgsql-bugs по дате отправления:

Предыдущее
От: "PostgreSQL Bugs List"
Дата:
Сообщение: BUG #1044: snprintf() shipped with PostgreSQL is not thread safe
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: BUG #1044: snprintf() shipped with PostgreSQL is not thread