You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Post release of psycopg2==2.9.1, Copy_from functionality is failing with error
COPY_FROM throws error UndefinedTable: relation ".
" does not exist
below is the code
cursor.copy_from(sio, table='TestSchema.TestTable', columns=list(df.columns), sep=',')
It works fine with psycopg2==2.8.6
The text was updated successfully, but these errors were encountered:
Many thanks. Incase someone has already extensively used Copy_From (like me), I believe adding below will help avoid making lots of code changes
cursor.execute("SET search_path = Schema_Name")
@vtiwary I'm not familiar with these, but did you mean adding cursor.execute("SET search_path = Schema_Name") before or after cursor.copy_from(...)? Thanks.
Post release of psycopg2==2.9.1, Copy_from functionality is failing with error
" does not existCOPY_FROM throws error UndefinedTable: relation ".
below is the code
cursor.copy_from(sio, table='TestSchema.TestTable', columns=list(df.columns), sep=',')
It works fine with psycopg2==2.8.6
The text was updated successfully, but these errors were encountered: