How can I encrypt PostgreSQL functions/procedures like SQL Server’s WITH ENCRYPTION?
In SQL Server, we can define stored procedures and functions using WITH ENCRYPTION so that users cannot view the source code even if they have database access.
I want the same level of protection in PostgreSQL, so that if a customer gets database access (or even the DB password), they cannot read my business logic stored in functions and procedures.
Is there a way to do this in PostgreSQL?