From inside a function, I need to know in which schema the function belongs to. Is there any way to know that in Postgresql?
FYI, current_schema()
function provides me the set schema of the current session, which is not what I want. For example, I am in schema test1
now and I can call function test2.test_function()
. Now, from inside that function current_schema()
will give test1
. But I need to get test2
, which is the function schema.