Re: How to mimic Perl's DBD::Pg's do('COPY...')/pg_putline/pg_endcopy ?
Kynn Jones <[email protected]>
| Newsgroups | gmane.comp.python.db.psycopg.devel |
|---|---|
| Message-ID | <[email protected]> |
> > In the examples section of the unpacked tarball there are two examples, > copy_to.py and copy_from.py. > Sorry, I should have pointed out that I had looked at those examples, and they do not illustrate the functionality I described in my original message. Those examples require either 1) creating a temporary file from which the data could be read; or 2) create a "file-like object" resident in memory. Either of these two requirements is inconvenient when the amount of data to be processed is large (which is precisely the times when one would want to use PostgreSQL's COPY feature). kynn _______________________________________________ Psycopg mailing list Psycopg-IAPFreCvJWPBWskQ1e/[email protected] http://lists.initd.org/mailman/listinfo/psycopg