© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•4y ago
Monk (Svenky)

Syntax problem with COPY function

Hey there, i am stuck with a problem for a few days.
I want to upload .txt files (50+ rows) in supabase.
Everythings worked fine until i tried to get the files from my front end.
I am using this code :
begin
EXECUTE format(E'
COPY (tablename)
FROM PROGRAM curl %L
DELIMITER %L
encoding %L'
,input_url, '\t', 'windows-1251');
end;

When i just use write the url it work without the EXECUTE FORMAT (it's plpgsql)

Any clues ?
Supabase banner
SupabaseJoin
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.
45,816Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Function syntax error
SupabaseSSupabase / help-and-questions
4y ago
Edge function problem
SupabaseSSupabase / help-and-questions
3w ago
Edge function auth problem
SupabaseSSupabase / help-and-questions
2mo ago
Syntax error in postgress functions
SupabaseSSupabase / help-and-questions
4y ago