Yes. That is what is producing the errors. The pertinent lines are:
conn = psycopg2.connect(conn_string)
cursoro = conn.cursor(cursor_factory=psycopg2.extras.DictCursor)
... processing python code
... creates test.txt
... closes test.txt
f = open("/tmp/test.txt","r")
copy_string = 'copy temp_tbl from '/tmp/test.txt' csv delimiter '|';'
cursoro.copy_expert(copy_string, file)
Is a cursor the wrong way to reference copy_expert ?
On 10/28/2015 08:06 AM, Shulgin, Oleksandr wrote: