pgsql: Fix use-after-free bug with AfterTriggersTableData.storeslot

2021-02-27 Thread Alvaro Herrera
Fix use-after-free bug with AfterTriggersTableData.storeslot AfterTriggerSaveEvent() wrongly allocates the slot in execution-span memory context, whereas the correct thing is to allocate it in a transaction-span context, because that's where the enclosing AfterTriggersTableData instance belongs in

pgsql: Fix use-after-free bug with AfterTriggersTableData.storeslot

2021-02-27 Thread Alvaro Herrera
Fix use-after-free bug with AfterTriggersTableData.storeslot AfterTriggerSaveEvent() wrongly allocates the slot in execution-span memory context, whereas the correct thing is to allocate it in a transaction-span context, because that's where the enclosing AfterTriggersTableData instance belongs in

pgsql: Fix use-after-free bug with AfterTriggersTableData.storeslot

2021-02-27 Thread Alvaro Herrera
Fix use-after-free bug with AfterTriggersTableData.storeslot AfterTriggerSaveEvent() wrongly allocates the slot in execution-span memory context, whereas the correct thing is to allocate it in a transaction-span context, because that's where the enclosing AfterTriggersTableData instance belongs in

pgsql: Fix use-after-free bug with AfterTriggersTableData.storeslot

2021-02-27 Thread Alvaro Herrera
Fix use-after-free bug with AfterTriggersTableData.storeslot AfterTriggerSaveEvent() wrongly allocates the slot in execution-span memory context, whereas the correct thing is to allocate it in a transaction-span context, because that's where the enclosing AfterTriggersTableData instance belongs in