trailing comment ghost-timing

From: "Erik Rijkers" <er(at)xs4all(dot)nl>
To: pgsql-hackers(at)postgresql(dot)org
Subject: trailing comment ghost-timing
Date: 2013-12-24 01:05:23
Message-ID: 956222913d3dc9184105c8ae0fad8bde.squirrel@webmail.xs4all.nl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

With \timing on, a trailing comment yields a timing.

# test.sql
select 1;

/*
select 2
*/

$ psql -f test.sql
?column?
----------
1
(1 row)

Time: 0.651 ms
Time: 0.089 ms

I assume it is timing something about that comment (right?).

Confusing and annoying, IMHO. Is there any chance such trailing ghost-timings can be removed?

BTW:
$ cat ~/.psqlrc
\set QUIET on
\timing on

Thanks,

Erik Rijkers

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Andreas Karlsson 2013-12-24 01:12:53 Planning time in explain/explain analyze
Previous Message Peter Geoghegan 2013-12-23 22:59:31 Re: INSERT...ON DUPLICATE KEY LOCK FOR UPDATE