From: | Andrew Dunstan <adunstan(at)postgresql(dot)org> |
---|---|
To: | Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com> |
Cc: | PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: [COMMITTERS] pgsql: Improve pretty printing of viewdefs. |
Date: | 2012-02-19 21:19:16 |
Message-ID: | 4F416754.5070605@postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers pgsql-hackers |
On 02/19/2012 04:18 PM, Andrew Dunstan wrote:
>
> [redirecting to -hackers]
Arghh, this time redirecting ...
>
> On 02/19/2012 12:04 PM, Pavel Stehule wrote:
>> Hello
>>
>> nice
>>
>> should be this functionality used for query too?
>>
>> some like
>>
>> pg_pretty_query('SELECT ... ', 80)
>>
>> when we have this functionality.
>>
>>
>
> It would probably be possible to leverage some of this for that, but
> it's certainly not part of the present piece of work. All the logic is
> there in get_query_def() and friends. There would need to be a wrapper
> that called the parser to get a query object from the input string and
> then called get_query_def() to get back the reformatted output, and
> there are probably any number of wrinkles I haven't thought of.
>
> cheers
>
> andrew
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2012-02-19 23:58:33 | pgsql: Create the beginnings of internals documentation for the regex c |
Previous Message | Andrew Dunstan | 2012-02-19 21:18:07 | Re: pgsql: Improve pretty printing of viewdefs. |
From | Date | Subject | |
---|---|---|---|
Next Message | Simon Riggs | 2012-02-19 21:49:48 | Re: 16-bit page checksums for 9.2 |
Previous Message | Andrew Dunstan | 2012-02-19 21:18:07 | Re: pgsql: Improve pretty printing of viewdefs. |