Re: Add schema-qualified relnames in constraint error messages. - Mailing list pgsql-hackers

From Daniel Verite
Subject Re: Add schema-qualified relnames in constraint error messages.
Date
Msg-id 688976b2-50df-4200-ab9e-e61b03f29dd1@mm
Whole thread Raw
In response to Re: Add schema-qualified relnames in constraint error messages.  ("Shulgin, Oleksandr" <oleksandr.shulgin@zalando.de>)
Responses Re: Add schema-qualified relnames in constraint error messages.
List pgsql-hackers
    Shulgin, Oleksandr wrote:

> Most importantly, I'd like to learn of better options than storing the
> whole last_result in psql's pset structure.

I guess that you could, each time a query fails, gather silently the
result of \errverbose, store it in a buffer, discard the PGresult,
and in case the user does \errverbose before running another query,
output what was in that buffer.


Best regards,
--
Daniel Vérité
PostgreSQL-powered mailer: http://www.manitou-mail.org
Twitter: @DanielVerite



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Tracing down buildfarm "postmaster does not shut down" failures
Next
From: Kouhei Kaigai
Date:
Subject: Re: Way to check whether a particular block is on the shared_buffer?