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.92) (envelope-from ) id 1jDpyB-0003wD-16 for pgsql-general@arkaria.postgresql.org; Mon, 16 Mar 2020 13:39:51 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1jDpy9-0006Zm-OZ for pgsql-general@arkaria.postgresql.org; Mon, 16 Mar 2020 13:39:49 +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 1jDpy9-0006Ze-Er for pgsql-general@lists.postgresql.org; Mon, 16 Mar 2020 13:39:49 +0000 Received: from mail.hjp.at ([212.17.106.138] helo=rorschach.hjp.at) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jDpy5-0003cE-KV for pgsql-general@lists.postgresql.org; Mon, 16 Mar 2020 13:39:48 +0000 Received: by rorschach.hjp.at (Postfix, from userid 1000) id DEBB928AC; Mon, 16 Mar 2020 14:39:42 +0100 (CET) Date: Mon, 16 Mar 2020 14:39:42 +0100 From: "Peter J. Holzer" To: pgsql-general@lists.postgresql.org Subject: Formatting output (was: Order by and timestamp) Message-ID: <20200316133942.GA32338@hjp.at> References: <63004F55-4CA3-40F8-A898-E7A646B0EBD3@gmail.com> <20200315164835.4ba454b1.lembark@wrkhors.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="DocE+STaALJfprDB" Content-Disposition: inline In-Reply-To: <20200315164835.4ba454b1.lembark@wrkhors.com> User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --DocE+STaALJfprDB Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2020-03-15 16:48:35 -0500, Steven Lembark wrote: > On Sun, 15 Mar 2020 22:33:35 +0100:wq > Bj=C3=B6rn Lundin wrote: >=20 > > And to my surprise i get a result like this (note the order of > > column STARTTS) >=20 > (1) Suggest using "pastebin.com" for this kind of data. It may not > look very pretty -- or readable at all -- on the viewer's end > depending on their settings (see below for example). [...] > > marketid | marketname | startts | > > eventid =E2=80=A6. > > =E2=80=A6. > >=20 > > 1.127253880 | To Be Placed | 2016-09-29 16:10:00 | > > 27951325 | 1.127275624 | 1m4f Hcap | 2016-09-30 > > 16:20:00 | 27953169 | 1.127275625 | To Be Placed | This is weird. The output is correctly formatted in the text/plain part and the HTML part looks reasonable, too: Every line is in a div of its own, so it shouldn't be jumbled together like that (Out of curiosity: What mail program did use to read this?). The only obvious problem I see is the use of the "Menlo" font. Non-Mac Users won't have that and won't know that they should substitute a monospace font, so the alignment will be off. As far as pasted output on this list goes, Bj=C3=B6rn's message looked actually quite good. Some problems I see frequently and find annoying: * Wide output (especially explain plans) with wrapped lines. I find these almost impossible to read, so I have to save the mail to a file and manually undo the line breaks to read it. I rarely bother to do that. * ASCII graphics which only line up in a certain proportional font * text/plain messages with very long lines which really should be paragraphs. hp --=20 _ | Peter J. Holzer | Story must make more sense than reality. |_|_) | | | | | hjp@hjp.at | -- Charles Stross, "Creative writing __/ | http://www.hjp.at/ | challenge!" --DocE+STaALJfprDB Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEETtJbRjyPwVTYGJ5k8g5IURL+KF0FAl5vgZcACgkQ8g5IURL+ KF2UqQ//cDFFXewHNLRpEgq3322iR7wpAJK0GU+ThZkcIHJiXtC6Oe5B7O0Lu4zX vdzUF0+KEcjfQzGLWG3Y6D9nZjEijegfs/2FjDJzd1qfA5Vl8uYteQhQC2SnUhbj f39G9f0QFGMF4QXycBR4fH1RFkHpK0kiESrfllGdvhiQsw5h5KNy5C4FUN1PA24X CxEHiWKWUJjBNyeQY+GHN+uL/ftEroSFAT6UU9MIU4Q1N0tXTbkdLIKkwYXyxhO5 pUXZW8MMiehqI9+7Wv0G3VYZFXvg9rcf8eOAbhECs+7gqvNBaeQPtM/58GflyS/N NIMTKpYYTzN9TNXVCSQxa+vN22W84bKjho4yiM4V+yNx5LB6/fzjRgOvhNSb+cC9 agoABDp2ngP4/qV38IDFN+rdlNyJPlkQQu5sGj6v2IZ1HMVOElDyin86LMwIRspg NfS8wTzaRJqYPUuOR/2MSjHR5Zq/0SZIF3QGIIjQWR1lVdGUl7QMDclQVC0UTvIN YTzK0RVaYreV54xusqHcS/mDzo77AGmi46ym2loUaU7eRS6SxNr2jLuSYhOFxaZ+ o/m851wrmIjPgTTqr5xcEy/hpJCzLAQOcugjtSZ1BXtDBpa++KbqO4J4cLNexTUn LYgqkec9dogStw34LSXnS1wuliEvRywxURMoXR/XYW1JcwbHuYY= =fjTe -----END PGP SIGNATURE----- --DocE+STaALJfprDB--