Re: My question about the transaction - Mailing list pgsql-general

From David G. Johnston
Subject Re: My question about the transaction
Date
Msg-id CAKFQuwaH+W_AdUZJZj8GEaf-wR-fhVpRtS5SghjHdS+Wkps7DA@mail.gmail.com
Whole thread Raw
In response to My question about the transaction  ("Wen Yi" <wen-yi@qq.com>)
List pgsql-general


On Thursday, October 19, 2023, Wen Yi <wen-yi@qq.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.
 

pgsql-general by date:

Previous
From: Ron
Date:
Subject: Re: Driver Postgresql HP-Unix
Next
From: Adrian Klaver
Date:
Subject: Re: My question about the transaction