Re: copy_from() with a list of columns?
Stephane Bortzmeyer <[email protected]>
| Newsgroups | gmane.comp.python.db.psycopg.devel |
|---|---|
| Organization | NIC France |
| Message-ID | <[email protected]> |
On Wed, Sep 30, 2009 at 10:21:21PM +0200, Stephane Bortzmeyer <[email protected]> wrote a message of 16 lines which said: > But psycopg's copy_from seems to have no way to specify the columns > you use. OK, it is apparently not in the doc but I've found it in the sources: cursor.copy_from(input, "MyTable", columns=['foobar'])