Private stored procedures #2224
Answered
by
steve-chavez
Nick-Mazuk
asked this question in
Questions
-
Stored procedures seem to be created any time you create a function in Postgres. However, to use a trigger (e.g., create the public.users row when a new user signs up), you also need to create a function. And these functions seem to be callable from Is there anyway to make some functions not callable as RPCs? |
Beta Was this translation helpful? Give feedback.
Answered by
steve-chavez
Jul 6, 2021
Replies: 1 comment
-
Hey @Nick-Mazuk, All functions in the create schema private; -- can be any name
create or replace function private.my_func(..) |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Nick-Mazuk
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey @Nick-Mazuk,
All functions in the
public
schema will be exposed through RPC. To keep them private, you can create them on another schema. Like: