EXECUTE DB FUNCTION WITH IN DB FUNCTION IN POSTGRESQL code example
Example 1: call stored function postgres
SELECT my_function();
Example 2: postgresql functions
CASE
WHEN condition_1 THEN result_1
WHEN condition_2 THEN result_2
...
ELSE result_n
END