Massive data import from remote CSV file, using COPY command within a Edge Function #27890
Unanswered
leodimieri
asked this question in
Questions
Replies: 1 comment 3 replies
-
You are not Superuser with hosted Supabase. You have a lot of privileges, but not all. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi everyone,
Im trying to achieve a massive data insertion from a csv file uploaded into Supabase Storage from the frontend.
The secuence is:
COPY reports FROM '${signedUrl}' WITH (FORMAT csv, HEADER true)
I then got the error:
must be superuser or have privileges of the pg_read_server_files role to COPY from a file
When I try to grant that privileges to my user in Supabase SQL Editor:
GRANT pg_read_server_files TO my_user
I got the error:
ERROR: 42501: "pg_read_server_files" role memberships are reserved, only superusers can grant them
So.. Am I supposed to be the superuser or what?
I'm the Supabase project creator, it's my own account.. so what does this all means ? And how can I achieve what I want, if there's some other way.. please help !!
I thank you all from advance,
Regards,
Leo
PD: I've also tried:
filesystem
Beta Was this translation helpful? Give feedback.
All reactions