Re: Will crashed transaction be rollbacked? - Mailing list pgsql-novice

From Stephen Frost
Subject Re: Will crashed transaction be rollbacked?
Date
Msg-id 20200729144527.GM12375@tamriel.snowman.net
Whole thread Raw
In response to Will crashed transaction be rollbacked?  (Jialun Zhang <reatank@gmail.com>)
List pgsql-novice
Greetings,

* Jialun Zhang (reatank@gmail.com) 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

Attachment

pgsql-novice by date:

Previous
From: Jialun Zhang
Date:
Subject: Will crashed transaction be rollbacked?
Next
From: Chamath Sajeewa
Date:
Subject: PGSQL insert data to a oid column using SOCI