call a function in postgresql code example
Example 1: postgresql functions
CASE
WHEN condition_1 THEN result_1
WHEN condition_2 THEN result_2
...
ELSE result_n
END
Example 2: call stored function postgres
SELECT my_function();