Re: [GENERAL] Question about the isolation level and visible

2015-06-26 Thread Kevin Grittner
娄帅 wrote: > I start two session with the following execute time order: > > session1: START TRANSACTION ISOLATION LEVEL SERIALIZABLE; > > session2: INSERT INTO t1 values(1); > session2: COMMIT; > > session1: SELECT * FROM t1; > > I found session1 got the value 1 which is inserted by session2. > >

Re: [GENERAL] Question about the isolation level and visible

2015-06-25 Thread Xiang Gan
From: pgsql-general-ow...@postgresql.org [mailto:pgsql-general-ow...@postgresql.org] On Behalf Of 娄帅 Sent: Friday, June 26, 2015 9:12 AM To: pgsql-general@postgresql.org Subject: [GENERAL] Question about the isolation level and visible Hi, all, I start two session with the following execute

[GENERAL] Question about the isolation level and visible

2015-06-25 Thread 娄帅
Hi, all, I start two session with the following execute time order: session1: START TRANSACTION ISOLATION LEVEL SERIALIZABLE; session2: INSERT INTO t1 values(1); session2: COMMIT; session1: SELECT * FROM t1; I found session1 got the value 1 which is inserted by session2. Is there any way to