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

From Benoît Dufour
Subject [Feature request] Add a way to get the length of a PQerrorMessage in libpq
Date
Msg-id 2f8664b8-9b7a-4d2e-a90f-fca262ed2f07@mail.com
Whole thread Raw
Responses Re: [Feature request] Add a way to get the length of a PQerrorMessage in libpq
List pgsql-hackers
Hello hackers,

I've been using PostgreSQL for about one year, and so far I like it a
lot, way more than MySQL or MariaDB, but I still have a little feature
request for libpq.

Could you add a way to get the size of an error message in libpq?

PQerrorMessage isn't enough when you want to do exact size string
concatenation or copy of the error message.




pgsql-hackers by date:

Previous
From: Greg Burd
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