Re: Feature request : Reindentation of code

From: Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
To: Dave Page <dpage(at)pgadmin(dot)org>
Cc: Cousin Florence <fcousin(at)sopragroup(dot)com>, pgadmin-support(at)postgresql(dot)org
Subject: Re: Feature request : Reindentation of code
Date: 2010-03-02 17:57:43
Message-ID: 162867791003020957n593431bfj456c2e1cd624e9cc@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-support

2010/3/2 Dave Page <dpage(at)pgadmin(dot)org>:
> On Tue, Mar 2, 2010 at 5:32 PM, Cousin Florence <fcousin(at)sopragroup(dot)com> wrote:
>> Hi,
>>
>> It would be very nice to have a tool to reindent SQL queries.
>> Indeed, at work, me and my colleague often have to work on queries that
>> we extract from Java code or PL/pgSQL, in order to modify or study them.
>> Most of the time, these queries are not indented, and they are often
>> very complicated. So we have to manually indent them, and that can be
>> very boring and time consuming.
>> Some complain that proprietary tools have this feature, and not pgadmin
>> III.
>
> That might make a nice GSoC project...

pg core has 2/3 components for this task - parser and serialisation.
It missing only some rules for pretty printing. It cold be a good
contrib module (with a few hooks).

Pavel

>
>
>
> --
> Dave Page
> EnterpriseDB UK: http://www.enterprisedb.com
> PG East Conference: http://www.enterprisedb.com/community/nav-pg-east-2010.do
>
> --
> Sent via pgadmin-support mailing list (pgadmin-support(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgadmin-support
>

In response to

Responses

Browse pgadmin-support by date

  From Date Subject
Next Message Josh Berkus 2010-03-02 18:07:21 Re: Feature request : Reindentation of code
Previous Message Dave Page 2010-03-02 17:44:14 Re: Feature request : Reindentation of code