Re: BUG #11088: posgres blocks when i don't commit - Mailing list pgsql-bugs

From Kevin Grittner
Subject Re: BUG #11088: posgres blocks when i don't commit
Date
Msg-id 1406660115.91306.YahooMailNeo@web122303.mail.ne1.yahoo.com
Whole thread Raw
In response to BUG #11088: posgres blocks when i don't commit  (guido@sofer.com.ar)
List pgsql-bugs
"guido@sofer.com.ar" <guido@sofer.com.ar> wrote:=0A=0A> I have one table 'T=
ABLE' with a column 'COLUMN' and=0A> 'COLUMN' is a primary key=0A>=0A> I ha=
ve two processes 'proc1' and 'proc2'=0A>=0A> proc1 inserts a row in 'TABLE'=
 with 'A' in the column=0A> 'COLUMN'...=0A> AND IT DOESNT COMMIT=0A>=0A> pr=
oc2 tries to insert a row with 'A' in the column 'COLUMN'=0A>=0A> What happ=
ens is that posgres simply don't respond (not an error,=0A> nothing happens=
)=0A>=0A> Is that normal?=0A=0AYes, that is expected, because until proc1 c=
ommits or rolls back it=0Ais unknown whether the attempt by proc2 is an err=
or.=A0 If proc1=0Arolls back or otherwise fails before commit, it is OK for=
 proc2 to=0Ainsert that row; otherwise the attempt is an error.=0A=0ADetail=
s here:=0A=0Ahttp://www.postgresql.org/docs/current/interactive/mvcc.html=
=0A=0A--=0AKevin Grittner=0AEDB: http://www.enterprisedb.com=0AThe Enterpri=
se PostgreSQL Company

pgsql-bugs by date:

Previous
From: guido@sofer.com.ar
Date:
Subject: BUG #11088: posgres blocks when i don't commit
Next
From: Alvaro Herrera
Date:
Subject: Re: BUG #11090: Unclear error message in pg_upgrade