aboutsummaryrefslogtreecommitdiff
path: root/src/backend/executor/nodeHash.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2015-08-15 12:00:36 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2015-08-15 12:00:48 -0400
commit83604cc42353b6c0de2a3f3ac31f94759a9326ae (patch)
tree394d0b4dd7611b03594f4b5b41a0cb1a2db62135 /src/backend/executor/nodeHash.c
parente95126cf048b08d7ff5eb72ec33737e9e27c08f8 (diff)
downloadpostgresql-83604cc42353b6c0de2a3f3ac31f94759a9326ae.tar.gz
postgresql-83604cc42353b6c0de2a3f3ac31f94759a9326ae.zip
Repair unsafe use of shared typecast-lookup table in plpgsql DO blocks.
DO blocks use private simple_eval_estates to avoid intra-transaction memory leakage, cf commit c7b849a89. I had forgotten about that while writing commit 0fc94a5ba, but it means that expression execution trees created within a DO block disappear immediately on exiting the DO block, and hence can't safely be linked into plpgsql's session-wide cast hash table. To fix, give a DO block a private cast hash table to go with its private simple_eval_estate. This is less efficient than one could wish, since DO blocks can no longer share any cast lookup work with other plpgsql execution, but it shouldn't be too bad; in any case it's no worse than what happened in DO blocks before commit 0fc94a5ba. Per bug #13571 from Feike Steenbergen. Preliminary analysis by Oleksandr Shulgin.
Diffstat (limited to 'src/backend/executor/nodeHash.c')
0 files changed, 0 insertions, 0 deletions