0

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 ?

0

1 Answer 1

1

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
Sign up to request clarification or add additional context in comments.

1 Comment

@LaurenzAlbe : right ! I edited my answer, thanks for pointing this out.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.