© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•4y ago•
3 replies
Joakim

cache

I keep getting this error on my new functions.

"If a new function was created in the database with this name and parameters, try reloading the schema cache."
"If a new function was created in the database with this name and parameters, try reloading the schema cache."


"Could not find the public.user_like_store(store_id, user_id) function or the public.user_like_store function with a single unnamed json or jsonb parameter in the schema cache".
"Could not find the public.user_like_store(store_id, user_id) function or the public.user_like_store function with a single unnamed json or jsonb parameter in the schema cache".


So I tried reloading the scheme a few times. restarted my local dev server.
NOTIFY pgrst, 'reload schema'
NOTIFY pgrst, 'reload schema'
.

What else causes this to happen?
I looked into database function and cleared what became duplicates so I do not have several doing the same thing with same parameters.

my function looks like this
create or replace function user_like_store(user_id uuid, id int)
returns void
as
$func$
    update dev_stores_v3
    set likes = array_append(likes, user_id)
    where store_id = id
$func$
language sql,
create or replace function user_like_store(user_id uuid, id int)
returns void
as
$func$
    update dev_stores_v3
    set likes = array_append(likes, user_id)
    where store_id = id
$func$
language sql,


Not sure what to do
image.png
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

Clear database cache?
SupabaseSSupabase / help-and-questions
5mo ago
Reload Schema Cache
SupabaseSSupabase / help-and-questions
4y ago
Supabase Cache Egress exceeded
SupabaseSSupabase / help-and-questions
5mo ago
Reactive Client DB Cache
SupabaseSSupabase / help-and-questions
4y ago