Will crashed transaction be rollbacked?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Will crashed transaction be rollbacked?

Jialun Zhang
Hi All,

If the system crashes while a transaction still in progress, what will happen to it in recovery? Will it be rollbacked? For example, if I insert a row and the insertion has been xlogged, then the system crashes before this transaction commits, will this insertion be cancelled in recovery?

Thanks,
Jialun Zhang
Reply | Threaded
Open this post in threaded view
|

Re: Will crashed transaction be rollbacked?

Stephen Frost
Greetings,

* Jialun Zhang ([hidden email]) wrote:
> If the system crashes while a transaction still in progress, what will
> happen to it in recovery? Will it be rollbacked? For example, if I insert a
> row and the insertion has been xlogged, then the system crashes before this
> transaction commits, will this insertion be cancelled in recovery?

The transaction will be rolled back if it hasn't committed.

Thanks,

Stephen

signature.asc (836 bytes) Download Attachment