pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Stephen Frost <sfrost@snowman.net>
To: Nicolas Paris <niparisco@gmail.com>
Cc: pgsql-general@postgresql.org
Subject: Re: psql format result as markdown tables
Date: Sat, 13 Jan 2018 17:19:58 -0500
Message-ID: <20180113221958.GK2416@tamriel.snowman.net> (raw)
In-Reply-To: <20180113095053.dlf6mj32wxqqgcgk@gmail.com>
References: <20180113095053.dlf6mj32wxqqgcgk@gmail.com>

Hi Nicolas!

* Nicolas Paris (niparisco@gmail.com) wrote:
> I wonder if someone knows how to configure psql to output results as
> markdown tables. 

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

Attachments:

  signature.asc (application/pgp-signature, 818B) download

view thread (6+ messages)  latest in thread

Message-ID: <20180113221958.GK2416@tamriel.snowman.net>
Permalink:  ../20180113221958.GK2416@tamriel.snowman.net/
Also on:    postgresql.org/message-id/20180113221958.GK2416@tamriel.snowman.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: sfrost@snowman.net, niparisco@gmail.com
  Subject: Re: psql format result as markdown tables
  In-Reply-To: <20180113221958.GK2416@tamriel.snowman.net>
  References: <20180113095053.dlf6mj32wxqqgcgk@gmail.com> <20180113221958.GK2416@tamriel.snowman.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox