I am learning postgresql.
I created a function and it works properly as it is called. However I do have trouble with looking back the sql code.
Would you mind helping me to find a solution ?
You can use the pg_proc catalogue :
select proname, prosrc from pg_proc where proname= 'my_function';
Or from the psql terminal, use the \sf command :
\sf my_function