aboutsummaryrefslogtreecommitdiff
path: root/src/backend/executor/nodeHashjoin.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2007-01-30 22:05:25 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2007-01-30 22:05:25 +0000
commit6c74f05cf24cdd09a53ce7a6e2fc71b3fe074c99 (patch)
tree993f27f74240ad502b761ee1b86269b7b8913e35 /src/backend/executor/nodeHashjoin.c
parent458e9169d682f5aa94c5a4342ee2344d82da8a47 (diff)
downloadpostgresql-6c74f05cf24cdd09a53ce7a6e2fc71b3fe074c99.tar.gz
postgresql-6c74f05cf24cdd09a53ce7a6e2fc71b3fe074c99.zip
Repair oversights in the mechanism used to store compiled plpgsql functions.
The original coding failed (tried to access deallocated memory) if there were two active call sites (fn_extra pointers) for the same function and the function definition was updated. Also, if an update of a recursive function was detected upon nested entry to the function, the existing compiled version was summarily deallocated, resulting in crash upon return to the outer instance. Problem observed while studying a bug report from Sergiy Vyshnevetskiy. Bug does not exist before 8.1 since older versions just leaked the memory of obsoleted compiled functions, rather than trying to reclaim it.
Diffstat (limited to 'src/backend/executor/nodeHashjoin.c')
0 files changed, 0 insertions, 0 deletions