=?UTF-8?Q?Beno=C3=AEt_Dufour?= <benoit(dot)dufour(at)mail(dot)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