Re: Copy_from gets stuck with bigger input file
Manlio Perillo <[email protected]>
| Newsgroups | gmane.comp.python.db.psycopg.devel |
|---|---|
| Message-ID | <[email protected]> |
Federico Di Gregorio ha scritto: > Il giorno lun, 02/06/2008 alle 11.59 +0800, James Henstridge ha scritto: >> I've got some code in the Storm test suite to help test disconnection >> behaviour by setting up a simple TCP proxy between psycopg and >> Postgres. It might help in putting together a reproducable test for >> the psycopg test suite. > > Thismay be useful but I am starting to think that that specific problem > is libpq fault. It does not make senso to report an error like that and > then don't mark the connection as BAD. I'll write to postgresql devs > about that. > The reason they don't mark the connection as BAD is explained in the comments of the code. You *may* want to call pqReadData so that you can check if there are some NOTICE messages from the backend. pqReadData will make sure to properly clean up the connection. > federico > Manlio