Re: pg_dump --pretty-print-views

Andrew Dunstan <andrew@dunslane.net>

From: Andrew Dunstan <andrew@dunslane.net>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: David Fetter <david@fetter.org>, Marko Tiikkaja <pgmail@joh.to>, PostgreSQL Hackers <pgsql-hackers@postgresql.org>
Date: 2013-01-10T17:31:07Z
Lists: pgsql-hackers
On 01/10/2013 12:09 PM, Tom Lane wrote:


> Now, we could consider changing the "safe" mode so that it tries to
> provide nice whitespace/line breaks while not risking removal of
> parentheses.  But that would be a totally different patch, and I'm
> not sure how much it would address Marko's desires anyway.


I think there's a very good case for breaking the nexus between 
PRETTYFLAG_PAREN and PRETTYFLAG_INDENT+line wrapping for views. Only 
PRETTYFLAG_PAREN affects the safety issue. The others are just about 
white space in safe places.

cheers

andrew