psql \timing vs failed statements

From: Magnus Hagander <magnus(at)hagander(dot)net>
To: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: psql \timing vs failed statements
Date: 2012-01-17 15:01:23
Message-ID: CABUevExovt-R1gB32OSE-m-G0+y4sRfYXJ5JZA5enJdLeaz8cA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Right now, psql \timing output only gives output for successful
queries. Is there any actual reason for this, or just a "it happened"?

In particular,I just had a very long run of a CREATE UNIQUE INDEX fail
pretty far in - and I would've really liked to have timing output for
that one even though it failed.

Thus - if I were to change psql to output timing on failed queries as
well, will anybody object? ;)

--
 Magnus Hagander
 Me: http://www.hagander.net/
 Work: http://www.redpill-linpro.com/

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Marti Raudsepp 2012-01-17 15:12:50 Re: logging in high performance systems.
Previous Message Peter Geoghegan 2012-01-17 14:46:07 Re: xlog location arithmetic