© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•4y ago•
1 reply
praisethemoon

Filter based on a plpgsql function already defined

Greetings!

Consider the following scenario, i am fetching some content, from a db table
MusicSheets
MusicSheets
. The content should be accessible to authorized users, there are 3 columns in the MusicSheet to indicate the level of access,
everyone
everyone
,
friends_only
friends_only
and
just_me
just_me
. Following supabase best practices, the actualy sensitive information is stored on a separate table with solid policies. Now my problem is when listing the rows of
MusicSheet
MusicSheet
table on my UI, I don't really wanna rewrite all the functions i have already defined so my question is, can I reuse them in my filters client-level? Cheers!
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

plpgsql: filter new value's array field
SupabaseSSupabase / help-and-questions
3y ago
Run plpgsql function after 7 days from trigger.
SupabaseSSupabase / help-and-questions
4y ago
Notices for plpgsql
SupabaseSSupabase / help-and-questions
4y ago
how to filter records based on geo location
SupabaseSSupabase / help-and-questions
4y ago