Re: My question about the transaction

From: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
To: Wen Yi <wen-yi(at)qq(dot)com>
Cc: pgsql-general <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Re: My question about the transaction
Date: 2023-10-19 14:59:08
Message-ID: CAKFQuwaH+W_AdUZJZj8GEaf-wR-fhVpRtS5SghjHdS+Wkps7DA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Thursday, October 19, 2023, Wen Yi <wen-yi(at)qq(dot)com> wrote:

> Hi community,
> I am learning the transaction of the postgresql, and I try to test using
> these:
>

You failed to show how the two sessions interleave. Also, your first
session doesn’t use multi-statement transactions.

postgres=# insert into t values (1);
> INSERT 0 1
> postgres=# begin;
> BEGIN
>

Session one can see this row and modify it just fine…

David J.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Adrian Klaver 2023-10-19 15:40:54 Re: My question about the transaction
Previous Message Ron 2023-10-19 12:44:01 Re: Driver Postgresql HP-Unix