Re: Adding \ev view editor?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Adding \ev view editor?
Дата
Msg-id 10662.1251911608@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Adding \ev view editor?  (Andrew Dunstan <andrew@dunslane.net>)
Ответы Re: Adding \ev view editor?  (Andrew Dunstan <andrew@dunslane.net>)
Список pgsql-hackers
Andrew Dunstan <andrew@dunslane.net> writes:
> David E. Wheeler wrote:
>> Is there any reason that the CREATE VIEW output to pg_dump and, 
>> presumably, \ev, couldn't be refactored to pretty-print the VIEW 
>> declaration?

> Tom just said a day or two ago that he doesn't want pg_dump using any 
> pretty printing, and I think there is some sense in that.

It might be worth pointing out that what I don't want pg_dump doing
is suppressing "useless" parentheses.  Adding whitespace ought to be
safe enough.  So if anyone wanted to do the work of decoupling those
two effects of the prettyprint option, we could have "semi pretty
printed" output in pg_dump.  Dunno if it's worth it.

I don't see any particular reason to say that \ev shouldn't use fully
pretty printed output, though.  It doesn't have the same sorts of
future-proofing worries that pg_dump does.
        regards, tom lane


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: trigger SPI_exec count argument
Следующее
От: Pavel Stehule
Дата:
Сообщение: Re: window functions maybe bug