Re: [PATCHES] COPY for CSVs

2004-04-09 Thread Andrew Dunstan
Andrew Dunstan wrote: Andrew Dunstan wrote: Attached is an undocumented patch that implements COPY for CSVs according to the scheme recently discussed. I believe it handles all the straightforward and perverse cases that were discussed (including multiline fields and partially quoted fields)

[PATCHES] pg_restore ignore error patch

2004-04-09 Thread Fabien COELHO
Dear patchers, please find a small patch submission so that "pg_restore" ignores some sql errors. The implementation seems quite reasonnable to me, but pg-gods may have a different opinion. Two fields are added to the ArchiveHandler to trigger the behavior. A count summary of ignored sql errors

Re: [PATCHES] pg_restore ignore error patch

2004-04-09 Thread Tom Lane
Fabien COELHO <[EMAIL PROTECTED]> writes: > please find a small patch submission so that "pg_restore" ignores some sql > errors. Yeah, we've been talking about doing that for awhile. But please define "some errors" --- what do you ignore exactly? + if (AH->n_errors) + /* tran

Re: [PATCHES] pg_restore ignore error patch

2004-04-09 Thread Andrew Dunstan
Fabien COELHO said: > > > My tests suggest that a feature of pg_restore is that it is only > expected to work with its own server. Indeed, it generates some new > syntax, such as $$ quoting, which is not compatible with older servers. > This fact does not seem to appear in the documentation. > Wro

Re: [PATCHES] COPY for CSVs

2004-04-09 Thread Andrew Dunstan
Andrew Dunstan wrote: Attached is an undocumented patch that implements COPY for CSVs according to the scheme recently discussed. I believe it handles all the straightforward and perverse cases that were discussed (including multiline fields and partially quoted fields). I have done some light

Re: [PATCHES] New socket code for win32

2004-04-09 Thread Magnus Hagander
I have been running with this patch for a week now, and it is more stable than what's in there now for me. So I think it's ready to go. I have attached an updated socket.c file that changes the following: * Corrects two incorrect comments * Zeroes out the fd_sets in select at EINTR for consistency