Re: [Feature request] Add a way to get the length of a PQerrorMessage in libpq - Mailing list pgsql-hackers

From Tom Lane
Subject Re: [Feature request] Add a way to get the length of a PQerrorMessage in libpq
Date
Msg-id 189125.1755186836@sss.pgh.pa.us
Whole thread Raw
In response to [Feature request] Add a way to get the length of a PQerrorMessage in libpq  (Benoît Dufour <benoit.dufour@mail.com>)
Responses Re: [Feature request] Add a way to get the length of a PQerrorMessage in libpq
List pgsql-hackers
=?UTF-8?Q?Beno=C3=AEt_Dufour?= <benoit.dufour@mail.com> writes:
> Could you add a way to get the size of an error message in libpq?

What's wrong with applying strlen() to the result of PQerrorMessage?

            regards, tom lane



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: [PATCH] bms_prev_member() can read beyond the end of the array of allocated words
Next
From: Greg Burd
Date:
Subject: Re: [PATCH] bms_prev_member() can read beyond the end of the array of allocated words