Re: pgindent

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: pgindent
Дата
Msg-id 9355.1302451863@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: pgindent  (Robert Haas <robertmhaas@gmail.com>)
Ответы Re: pgindent  (Andrew Dunstan <andrew@dunslane.net>)
Список pgsql-hackers
Robert Haas <robertmhaas@gmail.com> writes:
> On Sun, Apr 10, 2011 at 11:55 AM, Greg Stark <gsstark@mit.edu> wrote:
>> Note that in the last one someone carefully made the variable names
>> line up and pgindent is changing the spacing to an arbitrary amount.

> Well, it's the same arbitrary amount that we use throughout our code,
> presumably.  I am not sure whether pgident is the best tool for the
> job, but at least it makes the code relatively consistent throughout,
> which is mostly a good thing.

Yes.  pgindent has never been about preserving somebody else's idea
of what's appropriate formatting.  This is sometimes bad but on the
whole it seems to be a win.

What I was a bit surprised by is the volume of changes in wparser_def.c
--- so far as I can see, that file hardly changed since 9.0, so why did
pgindent suddenly whack it around so much?  The other files that changed
a lot are mostly new code so widespread changes are unsurprising.
        regards, tom lane


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Joshua Berkus
Дата:
Сообщение: Re: Feature request: pg_basebackup --force
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: pgindent