X
Xata2w ago
angelgce

COPY statement

im using this query: COPY profiles FROM '${profilesWithAudience} and im getting this: { "message": "Failed to upload audience: invalid SQL: unsupported statement [COPY] on strict_with_ddl level, see https://xata.io/sql-support for the support matrix", "error": "Bad Request", "statusCode": 400 } my branch is in atached to a cluster
Connect to Postgres
Learn how to connect to Postgres directly via the wire protocol
No description
2 Replies
cmck
cmck2w ago
Hey @angelgce , it looks like you're using SQL over HTTP which does not support the COPY statement as per https://xata.io/docs/postgres#supported-statements
Connect to Postgres
Learn how to connect to Postgres directly via the wire protocol
angelgce
angelgceOP2w ago
So i guess i have to connect to psql by url? and then it will work? do you have any guide ?

Did you find this page helpful?