aboutsummaryrefslogtreecommitdiff
path: root/src/pl/plpython/plpy_procedure.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/pl/plpython/plpy_procedure.c')
-rw-r--r--src/pl/plpython/plpy_procedure.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/pl/plpython/plpy_procedure.c b/src/pl/plpython/plpy_procedure.c
index b7c24e356f5..990a33cc6d2 100644
--- a/src/pl/plpython/plpy_procedure.c
+++ b/src/pl/plpython/plpy_procedure.c
@@ -166,9 +166,10 @@ PLy_procedure_create(HeapTuple procTup, Oid fn_oid, bool is_trigger)
}
/* Create long-lived context that all procedure info will live in */
- cxt = AllocSetContextCreate(TopMemoryContext,
- procName,
- ALLOCSET_DEFAULT_SIZES);
+ cxt = AllocSetContextCreateExtended(TopMemoryContext,
+ procName,
+ MEMCONTEXT_COPY_NAME,
+ ALLOCSET_DEFAULT_SIZES);
oldcxt = MemoryContextSwitchTo(cxt);