From: Kevin Grittner <kgrittn@ymail.com>
To: guido@sofer.com.ar <guido@sofer.com.ar>
To: pgsql-bugs@postgresql.org <pgsql-bugs@postgresql.org>
Subject: Re: BUG #11088: posgres blocks when i don't commit
Date: Tue, 29 Jul 2014 11:55:15 -0700
Message-ID: <1406660115.91306.YahooMailNeo@web122303.mail.ne1.yahoo.com> (raw)
In-Reply-To: <20140729171423.16602.76857@wrigleys.postgresql.org>
References: <20140729171423.16602.76857@wrigleys.postgresql.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
"guido@sofer.com.ar" <guido@sofer.com.ar> wrote:
> I have one table 'TABLE' with a column 'COLUMN' and
> 'COLUMN' is a primary key
>
> I have two processes 'proc1' and 'proc2'
>
> proc1 inserts a row in 'TABLE' with 'A' in the column
> 'COLUMN'...
> AND IT DOESNT COMMIT
>
> proc2 tries to insert a row with 'A' in the column 'COLUMN'
>
> What happens is that posgres simply don't respond (not an error,
> nothing happens)
>
> Is that normal?
Yes, that is expected, because until proc1 commits or rolls back it
is unknown whether the attempt by proc2 is an error. If proc1
rolls back or otherwise fails before commit, it is OK for proc2 to
insert that row; otherwise the attempt is an error.
Details here:
http://www.postgresql.org/docs/current/interactive/mvcc.html
--
Kevin Grittner
EDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: kgrittn@ymail.com, guido@sofer.com.ar
Subject: Re: BUG #11088: posgres blocks when i don't commit
In-Reply-To: <1406660115.91306.YahooMailNeo@web122303.mail.ne1.yahoo.com>
References: <20140729171423.16602.76857@wrigleys.postgresql.org> <1406660115.91306.YahooMailNeo@web122303.mail.ne1.yahoo.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox