Hello,
I want to handle specific postgreSQL exceptions that I have in my procedures from the libpq API.

So far I use PQexec function and the exceptions are raised using:

RAISE EXCEPTION USING MESSAGE = ......

I cannot find how libpq functions can handle this type of exceptions.

Thank you,
Anna.