aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/xml.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2012-03-13 13:19:06 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2012-03-13 13:19:06 -0400
commited75380bdae30dc1313aef44beafad860cf246c0 (patch)
tree564084e9eedb713dda711e35573ded9a3d5ff17d /src/backend/utils/adt/xml.c
parent2e46bf67114586835f4a9908f1a1f08ee8ba83a8 (diff)
downloadpostgresql-ed75380bdae30dc1313aef44beafad860cf246c0.tar.gz
postgresql-ed75380bdae30dc1313aef44beafad860cf246c0.zip
Create a stack of pl/python "execution contexts".
This replaces the former global variable PLy_curr_procedure, and provides a place to stash per-call-level information. In particular we create a per-call-level scratch memory context. For the moment, the scratch context is just used to avoid leaking memory from datatype output function calls in PLyDict_FromTuple. There probably will be more use-cases in future. Although this is a fix for a pre-existing memory leakage bug, it seems sufficiently invasive to not want to back-patch; it feels better as part of the major rearrangement of plpython code that we've already done as part of 9.2. Jan UrbaƄski
Diffstat (limited to 'src/backend/utils/adt/xml.c')
0 files changed, 0 insertions, 0 deletions