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

From Tom Lane
Subject Re: PQconnectdb/PQerrorMessage changed behavior on master
Date
Msg-id 81296.1624824423@sss.pgh.pa.us
Whole thread Raw
In response to PQconnectdb/PQerrorMessage changed behavior on master  (Alexander Lakhin <exclusion@gmail.com>)
Responses Re: PQconnectdb/PQerrorMessage changed behavior on master  (Alexander Lakhin <exclusion@gmail.com>)
List pgsql-hackers
Alexander Lakhin <exclusion@gmail.com> writes:
> 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.

Yeah, see thread here:

https://www.postgresql.org/message-id/20210506162651.GJ27406%40telsasoft.com

sqlsmith is definitely Doing It Wrong there, but there's a
reasonable question whether such coding is common.

            regards, tom lane



pgsql-hackers by date:

Previous
From: Alexander Lakhin
Date:
Subject: PQconnectdb/PQerrorMessage changed behavior on master
Next
From: Tom Lane
Date:
Subject: Re: Overflow hazard in pgbench