Hello,
(I hope this message doesn't show up twice, I've had some problems with
my outgoing mailserver.)
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_'")
However, this always returns the error:
pgdb.DatabaseError: error 'ERROR: syntax error at or near "\" at
character 1
' in '\COPY packages_on_systems FROM '/tmp/tmpFCpuv_''
I've tried various ways of quoting and escaping the \, without success.
The same command works flawlessly in the postgresql-shell.
Anybody has a hint?
regards and tia,
Wolf
_______________________________________________
PyGreSQL mailing list
[email protected]
http://mailman.vex.net/mailman/listinfo/pygresql