BUG #2059: PGConnect fails when used in a thread

Поиск
Список
Период
Сортировка
От Chris Storah
Тема BUG #2059: PGConnect fails when used in a thread
Дата
Msg-id 20051121005219.16E05F0B95@svr2.postgresql.org
обсуждение исходный текст
Ответы Re: BUG #2059: PGConnect fails when used in a thread  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-bugs
The following bug has been logged online:

Bug reference:      2059
Logged by:          Chris Storah
Email address:      chris.storah@orionsmg.com
PostgreSQL version: 8.0.3
Operating system:   Linux - Fedora Core 4 x86_64 version
Description:        PGConnect fails when used in a thread
Details:

fe-connect.c in the src/interfaces/libpq directory is segfaulting when a
PQconnectdb is called from a thread (works when called from the main
application).

fe-connect.c - parseServiceInfo is failing because no service option is
being used in the connection string so service is NULL. The line that fails
is the 'snprintf(serviceFile, MAXPGPATH, "%s/pg_service.conf", ...) line. If
this is moved into the 'if (service != NULL)' section of code, everything
works fine (as it is never called when no service is specified).

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

Предыдущее
От: Matt
Дата:
Сообщение: Re: Huge query stalls at PARSE/BIND stage (1)
Следующее
От: "Manideep Kalisetty"
Дата:
Сообщение: BUG #2060: Issue with Data base connection