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.36 +0200, Manlio Perillo ha scritto:
>> 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.
> 
> And if there is no data it will block forever. :/
> 

Since the connection has been closed by the server, this should not happen.

pqReadData should return the data in the socket buffer, if any

> federico
> 


Manlio
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.