Release any detoasted copies of arrays that are made temporarily in

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 353a1cca9f9bc1aea895627087e77807a83915e8
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2008-01-25T04:46:07Z
Releases: 8.3.0
Release any detoasted copies of arrays that are made temporarily in
ri_FetchConstraintInfo, to avoid a query-duration memory leak when that
routine is called by RI_FKey_keyequal_upd_fk (which isn't executed in a
short-lived context).  This problem was latent when the routine was added
in February, but it didn't become serious until the varvarlena patch made
it quite likely that the fields being examined would be "toasted" (ie, have
short headers).  Per report from Stephen Denne.

Files

PathChange+/−
src/backend/utils/adt/ri_triggers.c modified +11 −1