Re: pretty print viewdefs - Mailing list pgsql-hackers

From Tom Lane
Subject Re: pretty print viewdefs
Date
Msg-id 26412.1251339835@sss.pgh.pa.us
Whole thread Raw
In response to Re: pretty print viewdefs  (Andrew Dunstan <andrew@dunslane.net>)
Responses Re: pretty print viewdefs
List pgsql-hackers
Andrew Dunstan <andrew@dunslane.net> writes:
> Tom Lane wrote:
>> Well, let's see it?  What do you do with expressions that don't fit?

> See attached.

This isn't going to work as-is, because (a) buf->data can be moved
around by repalloc, and (b) you're not allowing for newlines being
introduced within the column expressions.  You could probably fix it,
but given the lack of consensus for a line-length-based approach, I'm
not sure it's worth putting more effort into.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Logging configuration changes
Next
From: Andrew Dunstan
Date:
Subject: Re: pretty print viewdefs