PQconnectdb/PQerrorMessage changed behavior on master - Mailing list pgsql-hackers

From Alexander Lakhin
Subject PQconnectdb/PQerrorMessage changed behavior on master
Date
Msg-id 8e1295d1-03a5-f1b7-c482-1fe82cad5720@gmail.com
Whole thread Raw
Responses Re: PQconnectdb/PQerrorMessage changed behavior on master
List 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 by date:

Previous
From: Tom Lane
Date:
Subject: Re: PITR promote bug: Checkpointer writes to older timeline
Next
From: Tom Lane
Date:
Subject: Re: PQconnectdb/PQerrorMessage changed behavior on master