Wolf Wiegand wrote:

I try to use \COPY table FROM 'file' the following way:

hdl=pgdb.connect("...")
cur=hdl.cursor()
cur.execute("\\COPY packages_on_systems FROM '/tmp/tmpFCpuv_'")

Drop the backslash (this works for the pg module, so I expect it
should work for pgdb).


--
Regards,
 Daryl Tester,  Software Wrangler and Bit Herder, IOCANE Pty. Ltd.

"gnxt -e <file>  - Emacs emulation mode.  gnxt will attempt to emulate
Emacs' resource requirements by forking off a dozen raytracers in the
background."  -- gnxt user manual, Peter Gutmann.
_______________________________________________
PyGreSQL mailing list
[email protected]
http://mailman.vex.net/mailman/listinfo/pygresql

Reply via email to