Tom Lane wrote:
> Bruce Momjian <[EMAIL PROTECTED]> writes:
> > /*
> > * We emulate fgets() behaviour. So if there is no newline
> > * at the end, we add one...
> > */
> > ! if (line[len-1
Bruce Momjian <[EMAIL PROTECTED]> writes:
> /*
>* We emulate fgets() behaviour. So if there is no newline
>* at the end, we add one...
>*/
> ! if (line[len-1] != '\n')
>
OK, I have cleaned up this code and clarified the comment. Attached and
applied.
---
Andrew Dunstan wrote:
>
>
> Bruce Momjian wrote:
>
> >
> > /*
> >+ * Sometime the child
Andrew Dunstan wrote:
>
>
> Bruce Momjian wrote:
>
> >
> > /*
> >+ * Sometime the child returns "\r\n", which doesn't match
> >+ * our version string. The backend uses
> >+ * setvbuf(stdout, NULL, _
Bruce Momjian wrote:
/*
+ * Sometime the child returns "\r\n", which doesn't match
+ * our version string. The backend uses
+ * setvbuf(stdout, NULL, _IONBF, 0), but pg_dump doesn't
+ * so we have to fix it here.
+ */
+ if (strlen(line) >= 2 &&
+ line[strlen(line)
Here is fix for Win32 pg_dumpall that Claudio helped with.
Attached and applied.
--
Bruce Momjian| http://candle.pha.pa.us
[EMAIL PROTECTED] | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup.