Re: pgindent vs try/catch

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: pgindent vs try/catch
Дата
Msg-id 200409122214.i8CMEF924424@candle.pha.pa.us
обсуждение исходный текст
Ответ на Re: pgindent vs try/catch  ("Andrew Dunstan" <andrew@dunslane.net>)
Ответы Re: pgindent vs try/catch  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Andrew Dunstan wrote:
> I had that argument a while ago with Bruce and lost :-) . It does horrible
> things to if/else constructs too. The workaround is to put a comment in the
> block. On the whole I agree with you, though. If I put braces in my program
> it's for a reason, and the indenter shouldn't think it knows better than me.

I have removed the code from pgindent.  Now how do we clean up the
try/catch code that got messed up?

The original purpose of that code was to clean up the code we inherited
from Berkeley that had lots of excessive brace blocks and the pgindent 
code just remained.

--  Bruce Momjian                        |  http://candle.pha.pa.us pgman@candle.pha.pa.us               |  (610)
359-1001+  If your life is a hard drive,     |  13 Roberts Road +  Christ can be your backup.        |  Newtown Square,
Pennsylvania19073
 


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

Предыдущее
От: Gaetano Mendola
Дата:
Сообщение: Re: x86_64 configure problem
Следующее
От: Alvaro Herrera
Дата:
Сообщение: oid2name