Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gvjwO-00059u-Ec for pgsql-hackers@arkaria.postgresql.org; Mon, 18 Feb 2019 14:30:40 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gvjwN-0000pk-8U for pgsql-hackers@arkaria.postgresql.org; Mon, 18 Feb 2019 14:30:39 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gvjwM-0000ni-VT for pgsql-hackers@lists.postgresql.org; Mon, 18 Feb 2019 14:30:39 +0000 Received: from mail-qt1-x841.google.com ([2607:f8b0:4864:20::841]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gvjwK-0002q0-F5 for pgsql-hackers@lists.postgresql.org; Mon, 18 Feb 2019 14:30:38 +0000 Received: by mail-qt1-x841.google.com with SMTP id j36so19328581qta.7 for ; Mon, 18 Feb 2019 06:30:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=6m1mAYChP1hzy5cafhRItX3iRwPewFx/HE0MXWX2XbA=; b=FybRgdz2Btw4VaeUFmkGHajPFHMfYM8/9zg2W4GvQXyiEXK990WkpuIEvFqcmk1qCj BiV4iPK11dZuZoFD4ekiv03s51Cs3/hC+u1Vi1aKvWiiMzVt94hWOSm2DU75YyX8i0R8 LREX9xx+M33SBdfwi4w9GhiWLREz+zxCPZu5gdHL1BJYIfeSGUOU+X4lHsnllX6GvGrh r7tSCKQYGejfDrHTVuZoyWzzo8bHbF6vmWeA4SxE9dFsaehpQbsE2BWKB+BQ5J+L8qTV jXY/GUXrYuxSAY1vJ1nPlzhbb30WoLUNrKOwdcPjVUU4Rnc11d0Et8zt2wpQmuZPELP/ wGPg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=6m1mAYChP1hzy5cafhRItX3iRwPewFx/HE0MXWX2XbA=; b=Gj1sIoK3fIVY4wLayjfIcEVuqJIdtllqagl8eTLOmA4e291G5b5SCMX8JIMt91PvMj 3fLXLL/8x73YkC4+G9wNsfRULz6teEVXykDvWrDQlXZSF3yodB/dQ//n7Vh1dMmU52yV BltRcVYKNg023T4r37lUatG5JV5nhTLylTBGDAnh2jwysq2pN9TJ9Em+wrssIdcJxWR1 E+RjTNgAl0qxqZ6aEndE/QXgijYHsH33a5fAZbCrM9xrkWuiY9jV/vs4cSHzSnNFmWKt qbdM8Vf8y5R7AyJ3TqtFghItLwCwax0vzhpBLIxlZRgPeRq1nmauhrDOZxizgiyJ7zy0 wdjQ== X-Gm-Message-State: AHQUAub/efRN61bQoz50DGdxhN+W2A1FNOQyTh5THgpbTfHi7RUF+NmE bQ4U+FVkzAaIKvwNMh637PyPyw== X-Google-Smtp-Source: AHgI3IbeIqkr/Zo+G+PDDiOEqBItj7LTBvpvRdXOmwMoWqgTsRtu1cBkGs6f7QMr9QRI/3K1arbIvQ== X-Received: by 2002:ac8:2bd4:: with SMTP id n20mr18411195qtn.172.1550500234568; Mon, 18 Feb 2019 06:30:34 -0800 (PST) Received: from nimloth.alvh.no-ip.org ([186.11.95.81]) by smtp.gmail.com with ESMTPSA id d80sm266440qkg.83.2019.02.18.06.30.33 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 18 Feb 2019 06:30:34 -0800 (PST) Received: by nimloth.alvh.no-ip.org (Postfix, from userid 1000) id E5E6812463A; Mon, 18 Feb 2019 11:30:28 -0300 (-03) Date: Mon, 18 Feb 2019 11:30:28 -0300 From: Alvaro Herrera To: Peter Eisentraut Cc: Tom Lane , Daniel Gustafsson , pgsql-hackers@lists.postgresql.org Subject: Re: Reporting script runtimes in pg_regress Message-ID: <20190218143028.GA3700@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2019-Feb-18, Peter Eisentraut wrote: > On 2019-02-15 15:54, Tom Lane wrote: > >> We should also strive to align "FAILED" properly. > > Hmm. The reasonable ways to accomplish that look to be either > > (a) pad "ok" to the width of "FAILED", or (b) rely on emitting a tab. > > I don't much like either, especially from the localization angle. > > One should also note that FAILED often comes along with additional > > verbiage, such as "(ignored)" or a note about process exit status; > > so I think making such cases line up totally neatly is a lost cause > > anyway. > > Yeah, not strictly required, but someone might want to play around with > it a bit. FWIW I don't think we localize pg_regress output currently, so that argument seems moot ... But I think we can get away with constant four spaces for now. If we wanted to get really fancy, for interactive use we could colorize the output. (I wonder if there's a way to get browsers to colorize text/plain output somehow instead of printing the ansi codes). -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services