Re: ERROR after writing PREPARE WAL record

2019-07-17 Thread Asim R P
On Wed, Jul 17, 2019 at 7:08 PM Tom Lane wrote: > > Asim R P writes: > > Cancel/terminate requests are held off during "PREPARE TRANSACTION" > > processing in function PrepareTransaction(). However, a subroutine invoked > > by PrepareTransaction() may perform elog(ERROR) or elog(FATAL). > > The

Re: ERROR after writing PREPARE WAL record

2019-07-17 Thread Tom Lane
Asim R P writes: > Cancel/terminate requests are held off during "PREPARE TRANSACTION" > processing in function PrepareTransaction(). However, a subroutine invoked > by PrepareTransaction() may perform elog(ERROR) or elog(FATAL). Doing anything that's likely to fail in the post-commit code path

ERROR after writing PREPARE WAL record

2019-07-17 Thread Asim R P
Hello Cancel/terminate requests are held off during "PREPARE TRANSACTION" processing in function PrepareTransaction(). However, a subroutine invoked by PrepareTransaction() may perform elog(ERROR) or elog(FATAL). And if that happens after PREPARE WAL record is written and before transaction stat