Re: Will crashed transaction be rollbacked?

From: Stephen Frost <sfrost(at)snowman(dot)net>
To: Jialun Zhang <reatank(at)gmail(dot)com>
Cc: pgsql-novice(at)lists(dot)postgresql(dot)org
Subject: Re: Will crashed transaction be rollbacked?
Date: 2020-07-29 14:45:27
Message-ID: 20200729144527.GM12375@tamriel.snowman.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

Greetings,

* Jialun Zhang (reatank(at)gmail(dot)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

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Chamath Sajeewa 2020-07-29 18:16:53 PGSQL insert data to a oid column using SOCI
Previous Message Jialun Zhang 2020-07-29 14:37:20 Will crashed transaction be rollbacked?