Re: Copy_from gets stuck with bigger input file

Federico Di Gregorio <fog-NGVKUo/i/[email protected]>
Newsgroups gmane.comp.python.db.psycopg.devel
Organization initd.org
Message-ID <[email protected]>
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. :/

federico

-- 
Federico Di Gregorio                         http://people.initd.org/fog
Debian GNU/Linux Developer                                [email protected]
INIT.D Developer                                           fog-NGVKUo/i/[email protected]
  There are 10 types of people in this world, those that understand
   binary, and those that don't.                   -- Michael Gittelsohn

_______________________________________________
Psycopg mailing list
Psycopg-IAPFreCvJWPBWskQ1e/[email protected]
http://lists.initd.org/mailman/listinfo/psycopg
signature.asc (application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQBIQ7/CvcCgrgZGjesRAplPAJ9fD7bL4kn8889q5w+GAmfEc48KZQCdEzz4
hncFYhshUhuRIDGOSmLiihc=
=FnYA
-----END PGP SIGNATURE-----
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.