Re: transaction blocking inserts in postgresql 7.3

From: "Chris Hutchinson" <chris(at)hutchinsonsoftware(dot)com>
To: "Lincoln Yeoh" <lyeoh(at)pop(dot)jaring(dot)my>, <pgsql-general(at)postgresql(dot)org>
Subject: Re: transaction blocking inserts in postgresql 7.3
Date: 2003-03-26 09:59:13
Message-ID: IDEOKBCDGGIDOBADNGAPMEAFDHAA.chris@hutchinsonsoftware.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


> Is it blocking because orgid is a primary key?
> Does it still block if you use a different orgid in each of the two
> transactions?

It doesn't block if the orgid is different.

Unfortunately that doesn't solve the problem for the actual multiuser
application.
Users are being blocked from adding records or making changes in one table,
while another process has a (long) transaction importing records into
another table.
The two tables are related only by a common foreign key against a third
table.

I'm curious why postgres should be blocking like this, as the foreign key
constraint is presumably read-based.

Regards,
Chris

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message James Gregory 2003-03-26 11:01:37 Re: Advice on Database Schema
Previous Message Lincoln Yeoh 2003-03-26 09:50:10 Re: transaction blocking inserts in postgresql 7.3