Another pgindent gripe

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Another pgindent gripe
Дата
Msg-id 25441.1392333257@sss.pgh.pa.us
обсуждение исходный текст
Ответы Re: Another pgindent gripe  (Bruce Momjian <bruce@momjian.us>)
Список pgsql-hackers
I noticed that current pgindent wants to do this to a recently-added
comment in psql/copy.c:

*************** handleCopyIn(PGconn *conn, FILE *copystr
*** 627,633 ****                                       /*                                        * This code
erroneouslyassumes '\.' on a line alone                                        * inside a quoted CSV string terminates
the\copy.
 
!                                        *
http://www.postgresql.org/message-id/E1TdNVQ-0001ju-GO@wrigleys.postgresql.org                                       */
                                     if (strcmp(buf, "\\.\n") == 0 ||
strcmp(buf,"\\.\r\n") == 0)
 
--- 627,634 ----                                       /*                                        * This code
erroneouslyassumes '\.' on a line alone                                        * inside a quoted CSV string terminates
the\copy.
 
!                                        * http://www.postgresql.org/message-id/E1TdNVQ-0001ju-GO@w
!                                        * rigleys.postgresql.org                                        */
                         if (strcmp(buf, "\\.\n") == 0 ||                                               strcmp(buf,
"\\.\r\n")== 0)
 

Doesn't seem particularly friendly.
        regards, tom lane



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

Предыдущее
От: Andres Freund
Дата:
Сообщение: Re: issue with gininsert under very high load
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: Another pgindent gripe