You can query the pg_proc system catalog table to view the definition of a user defined function(UDF) in Redshift database as shown below:
SELECT prosrc from pg_proc where proname like '%your_function_name%';
You can query the pg_proc system catalog table to view the definition of a user defined function(UDF) in Redshift database as shown below:
SELECT prosrc from pg_proc where proname like '%your_function_name%';