From: | Nicolas Grilly <nicolas(at)gardentechno(dot)com> |
---|---|
To: | Federico Di Gregorio <federico(dot)digregorio(at)dndg(dot)it> |
Cc: | psycopg(at)postgresql(dot)org |
Subject: | Re: copy_from does not stop reading after an error |
Date: | 2011-02-01 11:34:49 |
Message-ID: | AANLkTi=5+DHSrtoKK4KhAidaBYLFyK7=CUkMN9eJdap_@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | psycopg |
Thank you Federico for your answer.
I have ran the same script with pg8000, and it does not stop reading after
an error either... Maybe it is not a bug, and just a limitation of the
PostgreSQL protocol? Maybe the copy from protocol is not designed to return
errors in the middle of the data stream, and I just have to split my data
stream into many chunks and call copy_from for each chunk?
On Tue, Feb 1, 2011 at 11:48, Federico Di Gregorio <
federico(dot)digregorio(at)dndg(dot)it> wrote:
> On 01/02/11 11:24, Nicolas Grilly wrote:
> > It looks like copy_from does not stop reading after an error. When the
> > input file is short, it is okay. But when the input file is very long,
> > it is really boring to wait for the entire file to be read just to
> > discover there is an error on the 10th row.
>
> Thank you very much. I just used your email to create a bug report on
> Lighthouse:
>
>
> http://psycopg.lighthouseapp.com/projects/62710-psycopg/tickets/37-copy_from-does-not-stop-reading-after-an-error
>
> federico
>
From | Date | Subject | |
---|---|---|---|
Next Message | Daniele Varrazzo | 2011-02-01 11:44:45 | At FOSDEM |
Previous Message | Federico Di Gregorio | 2011-02-01 10:48:07 | Re: copy_from does not stop reading after an error |