pgindent vs try/catch

Поиск
Список
Период
Сортировка
От Tom Lane
Тема pgindent vs try/catch
Дата
Msg-id 17028.1095010802@sss.pgh.pa.us
обсуждение исходный текст
Ответы Re: pgindent vs try/catch  ("Andrew Dunstan" <andrew@dunslane.net>)
Список pgsql-hackers
I'm fairly displeased with what pgindent has done to single-line PG_TRY
constructs, as in this example from pl_exec.c:

*************** exec_stmt_block(PLpgSQL_execstate * esta
*** 911,922 ****                                SPI_result_code_string(xrc));                PG_TRY();
!               {
!                       rc = exec_stmts(estate, block->body);
!               }               PG_CATCH();               {
!                       ErrorData *edata;                       PLpgSQL_exceptions *exceptions;
int                    j; 
 
--- 912,921 ----                                SPI_result_code_string(xrc));                PG_TRY();
!               rc = exec_stmts(estate, block->body);               PG_CATCH();               {
!                       ErrorData  *edata;                       PLpgSQL_exceptions *exceptions;
int                    j; 
 
*************** exec_stmt_block(PLpgSQL_execstate * esta

On the whole I'd prefer that pgindent not suppress "unnecessary"
brace pairs at all.
        regards, tom lane


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: beta1 & beta2 & Windows & heavy load
Следующее
От: "Andrew Dunstan"
Дата:
Сообщение: Re: pgindent vs try/catch