Causes an insert into a table with a unique column a tablelock or a rowlock?

From: u15074 <u15074(at)hs-harz(dot)de>
To: pgsql-general(at)postgresql(dot)org
Subject: Causes an insert into a table with a unique column a tablelock or a rowlock?
Date: 2003-03-18 15:23:14
Message-ID: 1048000994.3e7739e25e017@webmail.hs-harz.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I have a table containing a unique (primary key) column.
When I start a transaction and insert a row into the table, that doesn't
violate the unique constraint, will the whole table be locked or will there be
a rowlock?
What happens if I have a parallel transaction running, that inserts the same
row like the other transaction? Will I get an error or will I be able to
continue the transaction, but get an error when trying to commit?

Thanks.

-------------------------------------------------
This mail sent through IMP: http://horde.org/imp/

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Csaba Nagy 2003-03-18 15:47:44 Re: insert aliases?
Previous Message u15074 2003-03-18 15:14:31 Can I write Large Objects in parallel transactions?