For years some people (including me) have been annoyed by the fact that pg_get_viewdef() runs all the fields together more or less on one line, even in pretty printing mode. It makes the output for large views pretty unusable by humans. So I've been working on a fix for it. My preferred solution would be to put each field on its own line (or lines in a few cases), but some people felt this would use too much vertical space. So I've been working on a solution that's a bit more flexible than that, with the default pretty printing mode wrapping at 80 characters per line. Here's a screen shot that demonstrates the effects. I still like the last one there best, though.
↧