We have developed stored procedures and functions in a Postgres database which is performing the ETL process. This is deployed at the client system so we need to protect our code been mis-used/modified by the client place.
Is there any way to protect from viewing the stored procedure / function created. Current we have provided the dedicated user account which don't have the access to the function and has access only to the tables. Since the database is at the client place they will be able to access the system with the administration account and gain access to the function and stored procedure.
We would like to set the password/Encrypt the procedure for modification. But should have the execute permission without the password for procedure and function.
We are using the postgres 11 for our development.