* Support for nested plpgsql functions. This is quite ugly but this is the
* only point I could find where I can get the query string.
*/
+ if (plpgsql_recurse_level > 0 &&
+ error_context_stack && error_context_stack->arg)
if (plpgsql_recurse_level > 0)
{
MemoryContext oldcontext;