Re: Can we automatically add elapsed times to tap test log?
Andrew Dunstan <andrew@dunslane.net>
From: Andrew Dunstan <andrew@dunslane.net>
To: Andres Freund <andres@anarazel.de>, Tom Lane <tgl@sss.pgh.pa.us>
Cc: Nathan Bossart <nathandbossart@gmail.com>, pgsql-hackers@postgresql.org
Date: 2022-04-07T23:55:11Z
Lists: pgsql-hackers
On 4/7/22 17:58, Andres Freund wrote: > Hi, > > On 2022-04-07 17:45:09 -0400, Tom Lane wrote: >> Andres Freund <andres@anarazel.de> writes: >>> On 2022-04-07 17:21:09 -0400, Tom Lane wrote: >>>> I too think that the elapsed time is useful. I'm less convinced >>>> that the time-of-day marker is useful. >>> I think it'd be quite useful if it had more precision - it's a pita to >>> correlate regress_log_* output with server logs. >> Fair point. Maybe we could keep the timestamp (with ms precision >> if possible) and then the parenthetical bit is time-since-last-line >> (also with ms precision)? I think that would more or less satisfy >> both uses. > Would work for me... > All doable. Time::HiRes gives us a higher resolution timer. I'll post a new version in a day or two. cheers andrew -- Andrew Dunstan EDB: https://www.enterprisedb.com
Commits
-
Add timestamp and elapsed time decorations to TAP test logs
- 3b0a42e74edf 15.0 landed