Re: Question regarding how databases support atomicity

From: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
To: Siddharth Jain <siddhsql(at)gmail(dot)com>
Cc: "pgsql-general(at)lists(dot)postgresql(dot)org" <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Re: Question regarding how databases support atomicity
Date: 2024-05-04 03:13:16
Message-ID: CAKFQuwbSYnTbWtXqMCbOYtEec1ot28Bjvyx+MsqW-USw4mOu_w@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Friday, May 3, 2024, David G. Johnston <david(dot)g(dot)johnston(at)gmail(dot)com>
wrote:

> On Friday, May 3, 2024, Siddharth Jain <siddhsql(at)gmail(dot)com> wrote:
>
>>
>>
>> On Fri, May 3, 2024 at 8:00 PM Siddharth Jain <siddhsql(at)gmail(dot)com> wrote:
>>
>>>
>>>
>>> The way I understand this is that if there is a failure in-between, we
>>> start undoing and reverting the previous operations one by one.
>>>
>>
> You need to ensure a “begin” happens before Step 1 and a “commit” after
> Step 3.
>

As described in our documentation.

https://www.postgresql.org/docs/current/tutorial-transactions.html

David J.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Christophe Pettus 2024-05-04 03:20:49 Re: Question regarding how databases support atomicity
Previous Message David G. Johnston 2024-05-04 03:10:31 Re: Question regarding how databases support atomicity