pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
BUG #11088: posgres blocks when i don't commit
2+ messages / 2 participants
[nested] [flat]

* BUG #11088: posgres blocks when i don't commit
@ 2014-07-29 17:14 guido@sofer.com.ar
  2014-07-29 18:55 ` Re: BUG #11088: posgres blocks when i don't commit Kevin Grittner <kgrittn@ymail.com>
  0 siblings, 1 reply; 2+ messages in thread

From: guido@sofer.com.ar @ 2014-07-29 17:14 UTC (permalink / raw)
  To: pgsql-bugs

The following bug has been logged on the website:

Bug reference:      11088
Logged by:          Guido
Email address:      guido@sofer.com.ar
PostgreSQL version: 9.3.5
Operating system:   Linux
Description:        

Hi, I encountered the next problem, i really don't know how to describe it
in one sentence:

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? maybe yes, if it is, sorry for taking your time...




-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: BUG #11088: posgres blocks when i don't commit
  2014-07-29 17:14 BUG #11088: posgres blocks when i don't commit guido@sofer.com.ar
@ 2014-07-29 18:55 ` Kevin Grittner <kgrittn@ymail.com>
  0 siblings, 0 replies; 2+ messages in thread

From: Kevin Grittner @ 2014-07-29 18:55 UTC (permalink / raw)
  To: guido@sofer.com.ar <guido@sofer.com.ar>; pgsql-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



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2014-07-29 18:55 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2014-07-29 17:14 BUG #11088: posgres blocks when i don't commit guido@sofer.com.ar
2014-07-29 18:55 ` Kevin Grittner <kgrittn@ymail.com>

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