Re: [Fwd: Re: [pgsql-hackers-win32] Import from Linux to Windows] - Mailing list pgsql-hackers

From Andrew Dunstan
Subject Re: [Fwd: Re: [pgsql-hackers-win32] Import from Linux to Windows]
Date
Msg-id 411CB79E.40602@dunslane.net
Whole thread Raw
In response to [Fwd: Re: [pgsql-hackers-win32] Import from Linux to Windows]  (Andrew Dunstan <andrew@dunslane.net>)
Responses Re: [Fwd: Re: [pgsql-hackers-win32] Import from Linux to Windows]  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers

Andrew Dunstan wrote:

>
> The attached patch appears to solve the problem. However, while it
> makes us conform to the first sentence below from the docs, it doesn't
> comply with the second. Not sure what to do about that. Maybe there's
> a better solution?
>
>

Attached patch seems much better, I think.

cheers

andrew
Index: src/bin/psql/copy.c
===================================================================
RCS file: /projects/cvsroot/pgsql-server/src/bin/psql/copy.c,v
retrieving revision 1.50
diff -c -r1.50 copy.c
*** src/bin/psql/copy.c    11 Jul 2004 21:34:03 -0000    1.50
--- src/bin/psql/copy.c    13 Aug 2004 12:41:15 -0000
***************
*** 717,723 ****
              PQputline(conn, copybuf);
              if (firstload)
              {
!                 if (!strcmp(copybuf, "\\."))
                  {
                      copydone = true;
                      break;
--- 717,724 ----
              PQputline(conn, copybuf);
              if (firstload)
              {
!                 if ((!strcmp(copybuf, "\\.")) ||
!                     (c == '\n' && !strcmp(copybuf,"\\.\r")))
                  {
                      copydone = true;
                      break;

pgsql-hackers by date:

Previous
From: strk
Date:
Subject: Re: Dump Version
Next
From: Zoltan Bartko
Date:
Subject: i18n - sk