0

When I call a PL/PgSQL function (not a trigger) from another such function, is it possible to know the name or some kind of ID of a calling function?

1 Answer 1

2

This is as close as you will get, and it won't work in nested calls.

SELECT current_query(); 

You might want to email [email protected] with a feature request, including the use case you have for wanting to know this information.

Sign up to request clarification or add additional context in comments.

1 Comment

This gives me a full text of the calling query. Thanks!

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.