Re: Will crashed transaction be rollbacked?

Поиск
Список
Период
Сортировка
От Stephen Frost
Тема Re: Will crashed transaction be rollbacked?
Дата
Msg-id 20200729144527.GM12375@tamriel.snowman.net
обсуждение исходный текст
Ответ на Will crashed transaction be rollbacked?  (Jialun Zhang <reatank@gmail.com>)
Список 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

Вложения

В списке pgsql-novice по дате отправления:

Предыдущее
От: Jialun Zhang
Дата:
Сообщение: Will crashed transaction be rollbacked?
Следующее
От: Chamath Sajeewa
Дата:
Сообщение: PGSQL insert data to a oid column using SOCI