Re: [pgadmin-support] Feature request : Reindentation of code

2010-03-02 Thread Guillaume Lelarge
Hi Florence, Good to see you here :) Le 02/03/2010 18:32, Cousin Florence a écrit : > [...] > It would be very nice to have a tool to reindent SQL queries. I agree. > 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 mod

Re: [pgadmin-support] Feature request : Reindentation of code

2010-03-02 Thread Pavel Stehule
2010/3/2 Josh Berkus : > >> 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). >> > > Yeah, just for the love of mike don't start a discussion of *how* you > should indent st

Re: [pgadmin-support] Feature request : Reindentation of code

2010-03-02 Thread Josh Berkus
> 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). > Yeah, just for the love of mike don't start a discussion of *how* you should indent stuff on a public list. You'll ne

Re: [pgadmin-support] Feature request : Reindentation of code

2010-03-02 Thread Pavel Stehule
2010/3/2 Dave Page : > On Tue, Mar 2, 2010 at 5:32 PM, Cousin Florence > 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 stu

Re: [pgadmin-support] Feature request : Reindentation of code

2010-03-02 Thread Dave Page
On Tue, Mar 2, 2010 at 5:42 PM, Josh Berkus wrote: > On 3/2/10 9:33 AM, Dave Page wrote: >> On Tue, Mar 2, 2010 at 5:32 PM, Cousin Florence >> 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 queri

Re: [pgadmin-support] Feature request : Reindentation of code

2010-03-02 Thread Josh Berkus
On 3/2/10 9:33 AM, Dave Page wrote: > On Tue, Mar 2, 2010 at 5:32 PM, Cousin Florence > 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 t

Re: [pgadmin-support] Feature request : Reindentation of code

2010-03-02 Thread John Gage
May I pile on by saying that incorporating Vim features if not Vim itself into a discretionary editor (Vim being decidedly not proprietary) would make pgAdmin (and pg itself) into an even greater wonder of the world. Gratuitously, John On Mar 2, 2010, at 6:32 PM, Cousin Florence wrote:

Re: [pgadmin-support] Feature request : Reindentation of code

2010-03-02 Thread Dave Page
On Tue, Mar 2, 2010 at 5:32 PM, Cousin Florence 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, th

[pgadmin-support] Feature request : Reindentation of code

2010-03-02 Thread Cousin Florence
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.