PQconnectdb/PQerrorMessage changed behavior on master

From: Alexander Lakhin <exclusion(at)gmail(dot)com>
To: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: PQconnectdb/PQerrorMessage changed behavior on master
Date: 2021-06-27 20:00:00
Message-ID: 8e1295d1-03a5-f1b7-c482-1fe82cad5720@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2021-06-27 20:07:03 Re: PQconnectdb/PQerrorMessage changed behavior on master
Previous Message Tom Lane 2021-06-27 19:20:50 Re: PITR promote bug: Checkpointer writes to older timeline