Skip to content
Snippets Groups Projects
  • Tom Lane's avatar
    353a1cca
    Release any detoasted copies of arrays that are made temporarily in · 353a1cca
    Tom Lane authored
    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.
    353a1cca
    History
    Release any detoasted copies of arrays that are made temporarily in
    Tom Lane authored
    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.