PQconnectdb/PQerrorMessage changed behavior on master

Поиск
Список
Период
Сортировка
От Alexander Lakhin
Тема PQconnectdb/PQerrorMessage changed behavior on master
Дата
Msg-id 8e1295d1-03a5-f1b7-c482-1fe82cad5720@gmail.com
обсуждение исходный текст
Ответы Re: PQconnectdb/PQerrorMessage changed behavior on master  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Hello,

While trying to use sqlsmith with postgres compiled from the master branch, I've found that the PQerrorMessage() function now returns non-informational but not empty error message after the successful PQconnectdb() call.
    conn = PQconnectdb(conninfo.c_str());
    char *errmsg = PQerrorMessage(conn);
returns
'connection to server on socket "/tmp/ody8OuOaqV/.s.PGSQL.59860" failed: '

The affected sqlsmith code:
https://github.com/anse1/sqlsmith/blob/master/postgres.cc#L305

Best regards,
Alexander

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: PITR promote bug: Checkpointer writes to older timeline
Следующее
От: Tom Lane
Дата:
Сообщение: Re: PQconnectdb/PQerrorMessage changed behavior on master