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 erroneously assumes '\.' 
on a line alone
                                         * inside a quoted CSV string 
terminates the \copy.
!                                        * 
http://www.postgresql.org/message-id/e1tdnvq-0001ju...@wrigleys.postgresql.org
                                         */
                                        if (strcmp(buf, "\\.\n") == 0 ||
                                                strcmp(buf, "\\.\r\n") == 0)
--- 627,634 ----
                                        /*
                                         * This code erroneously assumes '\.' 
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


-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

Reply via email to