Re: psql - add special variable to reflect the last query status

Fabien COELHO <coelho@cri.ensmp.fr>

From: Fabien COELHO <coelho@cri.ensmp.fr>
To: Pavel Stehule <pavel.stehule@gmail.com>
Cc: PostgreSQL Developers <pgsql-hackers@postgresql.org>
Date: 2017-05-22T19:33:34Z
Lists: pgsql-hackers
>> Please find attached a v2 which hopefully takes into account all your
>> points above.
>>
>> Open question: should it gather more PQerrorResultField, or the two
>> selected one are enough? If more, which should be included?
>
>
> I don't think so it is necessary. No in this moment. ERROR_CODE and
> ERROR_MESSAGE are fundamental - and if we add other, then we should to add
> all. Has not sense to add only some.

Ok. I'm fine with stopping at CODE & MESSAGE.

-- 
Fabien.


Commits

  1. Add psql variables to track success/failure of SQL queries.