pgindent complaint of the day

Поиск
Список
Период
Сортировка
От Tom Lane
Тема pgindent complaint of the day
Дата
Msg-id 596.1097100351@sss.pgh.pa.us
обсуждение исходный текст
Ответы Re: pgindent complaint of the day  (Bruce Momjian <pgman@candle.pha.pa.us>)
Список pgsql-hackers
This case in xlog.c is representative of a disease that pgindent has had
for awhile:

@@ -4276,7 +4300,8 @@ StartupXLOG(void)               if (needNewTimeLine)    /* stopped because of stop request */
                 ereport(FATAL,                                       (errmsg("requested recovery stop point is before
endtime of backup dump")));
 
-               else                                    /* ran off end of WAL */
+               else
+/* ran off end of WAL */                       ereport(FATAL,                                       (errmsg("WAL ends
beforeend time of backup dump")));       }
 

I'm not sure of all the triggering conditions, but every so often it
decides to move a line-ending comment to its own line (which is a wrong
policy in the first place IMHO) and forgets to indent it.  I've mostly
seen it on "else" lines but I'm not sure that's the only case.
        regards, tom lane


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

Предыдущее
От:
Дата:
Сообщение: Re: Re: PITR question
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Re: Re: PITR question