Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eaU9j-00031U-7v for pgsql-general@arkaria.postgresql.org; Sat, 13 Jan 2018 22:20:03 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eaU9i-00036c-LK for pgsql-general@arkaria.postgresql.org; Sat, 13 Jan 2018 22:20:02 +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_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1eaU9i-00036P-DK for pgsql-general@lists.postgresql.org; Sat, 13 Jan 2018 22:20:02 +0000 Received: from tamriel.snowman.net ([96.255.250.162]) by magus.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1eaU9f-0002tU-9H for pgsql-general@postgresql.org; Sat, 13 Jan 2018 22:20:01 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id 5477B5F7A2; Sat, 13 Jan 2018 17:19:58 -0500 (EST) Date: Sat, 13 Jan 2018 17:19:58 -0500 From: Stephen Frost To: Nicolas Paris Cc: pgsql-general@postgresql.org Subject: Re: psql format result as markdown tables Message-ID: <20180113221958.GK2416@tamriel.snowman.net> References: <20180113095053.dlf6mj32wxqqgcgk@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="/jkVpn98IfgsYGE5" Content-Disposition: inline In-Reply-To: <20180113095053.dlf6mj32wxqqgcgk@gmail.com> User-Agent: Mutt/1.5.24 (2015-08-30) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --/jkVpn98IfgsYGE5 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi Nicolas! * Nicolas Paris (niparisco@gmail.com) wrote: > I wonder if someone knows how to configure psql to output results as > markdown tables.=20 Unfortunately, I don't believe we support markdown as an output format as yet. To change the output format, you can use '\pset format html'. You can see the list of formats supported by psql here: https://www.postgresql.org/docs/current/static/app-psql.html Look for 'format' or 'asciidoc' in that page to find the list quickly. I suspect that if someone wanted to write the code to have markdown be available that it would certainly be accepted, as that's definitely a popular format. Thanks! Stephen --/jkVpn98IfgsYGE5 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJaWoYOAAoJEO1sijiDR2RVjXUP/ifN8PPJ4JaW8k/1AzlLiZkM xlxtNdMvOui68qk55Y4SeCuY3BKL2JgbKEQCDpI+zDDdKYFPHB7lJ7W7IWLrg9LV ij9ZY+LuxSxaKxiV51WFc2soI2gU+LBtryoOXM4C/1XBjSC8ZcO6ohvbLjlIPwUo Px2NcSVlbyFXS7KqzndkZgDMoxkj7JhOilp5WYDPAqD1i/Q942o8P3h24T3rWKl5 lH24fwbschzSM/eBIdMXkQoaqArQLq1aiF1J2OeW3uMdvoeS0XDXx1OmbIYmAduy HWzJCsOCAxG7ZSm5XrcpGFwCnS4DgImqBzg5lOzbgFBpw2hZLdwP/GGlcxUPXCOB RtCvrBFQOO13eGUbNAc8rFUH9AJmExLdGc/HIYTL9hM3jXhiqKhjXseREXNkFjj6 n15YE05kxKIlcSmdY36jhIzZmMip8Cy7gXeDazljX5IAdl+1pd51prVFkE7FV26r 47RKA+hPmRyjXvw4lVZb4FFCefc+tl8h7Hwpg9KxC+Vj0AOcrk8Of6T60/pLKlYQ tS5XDs4557GY//rwkW1rFUvzKk0/v6Hv+o6LFTaSA/KmpcvaA/P5ApaQlV2hsDn0 dss30QsBwkuiOY1dt3oBDiewu3pAaZ+sWfARtaucXdI0nJBwwzU3OiNG9lDlN3/V x2LwWh17UL24jN0k48XB =uaMW -----END PGP SIGNATURE----- --/jkVpn98IfgsYGE5--