Re: Add schema-qualified relnames in constraint error messages.

From: "Daniel Verite" <daniel(at)manitou-mail(dot)org>
To: "Shulgin, Oleksandr" <oleksandr(dot)shulgin(at)zalando(dot)de>
Cc: "PostgreSQL Hackers" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Add schema-qualified relnames in constraint error messages.
Date: 2016-02-09 23:33:32
Message-ID: 688976b2-50df-4200-ab9e-e61b03f29dd1@mm
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Kouhei Kaigai 2016-02-09 23:35:01 Re: Way to check whether a particular block is on the shared_buffer?
Previous Message Tom Lane 2016-02-09 23:30:02 Re: Tracing down buildfarm "postmaster does not shut down" failures