Re: XACT_EVENT for 'commit prepared'

2024-06-07 Thread Andres Freund
Hi, On 2024-06-07 11:19:40 -0400, Tom Lane wrote: > Xiaoran Wang writes: > > I found that in enum XactEvent, there is 'XACT_EVENT_PREPARE' for > > 'prepare transaction', but there is no event for 'commit prepared' or > > 'rollback prepared'. > > On the whole, it seems like a good idea to me th

Re: XACT_EVENT for 'commit prepared'

2024-06-07 Thread Tom Lane
Xiaoran Wang writes: > I found that in enum XactEvent, there is 'XACT_EVENT_PREPARE' for > 'prepare transaction', but there is no event for 'commit prepared' or > 'rollback prepared'. On the whole, it seems like a good idea to me that those commands don't invoke event triggers. It is a core pr