0

Is it possible to get all the variables of a PL/pgSQL function (including input parameters and DECLAREed variables)?

My goal is to collect these variables into a jsonb object with each variable name as the key, and variable value as the value in json. I know it's possible to get the name of the current function. I am just wondering if it's possible to get the variables/parameters and their values.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.