Re: [HACKERS] Other formats in pset like markdown, rst, mediawiki

Поиск
Список
Период
Сортировка
От Ideriha, Takeshi
Тема Re: [HACKERS] Other formats in pset like markdown, rst, mediawiki
Дата
Msg-id 4E72940DA2BF16479384A86D54D0988A565ABDF5@G01JPEXMBKW04
обсуждение исходный текст
Ответ на Re: [HACKERS] Other formats in pset like markdown, rst, mediawiki  (Jan Michálek <godzilalalala@gmail.com>)
Ответы Re: [HACKERS] Other formats in pset like markdown, rst, mediawiki
Список pgsql-hackers
>>I like the idea taking advantage of linestyle utilities 
>>to implement rst and markdown format efficiently instead of newly developing pset format things.
>>But I'm thinking two comments below needs change to something about not focusing only linestyle. 
>>That's because they really take care of both '\pset linestyle and \pset format' and it may lead to misunderstanding
toreaders.
 
>> 
>>---
>>/* Line style control structures */
>>const printTextFormat pg_markdown =
>> 
>>/* get selected or default line style */
>>const printTextFormat *
>>get_line_style(const printTableOpt *opt)
>>---

>It is in command.c?
>I have it done that \pset format changes linestyle


>psql (9.6.2, server 9.6.1)
>Type "help" for help.

>jelen=# \pset linestyle ascii
>Line style is ascii.
>jelen=# \pset format rst
>Output format is rst.
>jelen=# \pset linestyle
>Line style is rst.
>jelen=# 
>Peter wrote that this is not right, but i don`t know how it should like, because most of this is done on linestyle,
formatis used only for switch from console.
 

Thank you for explanation!

That's about print.c, but my explanation was poor...
My point was a slight thing about comments in source code.
I've just wanted to say comments needs change to match actual code.
These comments says about line style but the corresponding codes are about both line style and format. 

But these points should be considered after how to implement the new formats are decided.
So please don't care.
(I've just thought implementing the new formats using linestyle code came into consensus.)

Regards, 
Ideriha Takeshi

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

Предыдущее
От: Venkata B Nagothi
Дата:
Сообщение: Re: [HACKERS] patch proposal
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: [HACKERS] identity columns