Re: psql format result as markdown tables

Поиск
Список
Период
Сортировка
От Melvin Davidson
Тема Re: psql format result as markdown tables
Дата
Msg-id CANu8Fiz5gf1j6FpF+dcrftZdHz83VAAqLEaAbX0H+o0feckCcQ@mail.gmail.com
обсуждение исходный текст
Ответ на psql format result as markdown tables  (Nicolas Paris <niparisco@gmail.com>)
Ответы Re: psql format result as markdown tables  (Stephen Frost <sfrost@snowman.net>)
Список pgsql-general


On Sat, Jan 13, 2018 at 4:50 AM, Nicolas Paris <niparisco@gmail.com> wrote:
Hello

I wonder if someone knows how to configure psql to output results as
markdown tables.
Then instead of :

SELECT * FROM (values(1,2),(3,4)) as t;
 column1 | column2
---------+---------
       1 |       2
       3 |       4

Get the result as :
SELECT * FROM (values(1,2),(3,4)) as t;
| column1 | column2|
|---------|--------|-
|       1 |       2|
|       3 |       4|

Thanks by advance


A. You have not graced us with PostgreSQL version and O/S
B. Your two examples appear exactly the same.

Found with a google search of .... sql markdown table

--
Melvin Davidson
I reserve the right to fantasize.  Whether or not you
wish to share my fantasy is entirely up to you.

В списке pgsql-general по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Postgres 9.4 using primary key index in almost all queries leading to degraded performance
Следующее
От: Stephen Frost
Дата:
Сообщение: Re: psql format result as markdown tables