Andrew Dunstan <and...@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

-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

Reply via email to