Re: [Testperf-general] Re: ExclusiveLock - Mailing list pgsql-hackers

From Simon Riggs
Subject Re: [Testperf-general] Re: ExclusiveLock
Date
Msg-id 1100817806.4113.10444.camel@localhost.localdomain
Whole thread Raw
In response to Re: [Testperf-general] Re: ExclusiveLock  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: [Testperf-general] Re: ExclusiveLock
Re: [Testperf-general] Re: ExclusiveLock
List pgsql-hackers
On Thu, 2004-11-18 at 22:12, Tom Lane wrote:
> Josh Berkus <josh@agliodbs.com> writes:
> > Aside from foriegn keys, though, is there any way in which INSERT page locks 
> > could block other inserts?
> 
> Not for longer than the time needed to physically add a tuple to a page.

The main problem on INSERTs is that it is usually the same few pages:
the lead data block and the lead index block. There are ways of
spreading the load out across an index, but I'm not sure what happens on
the leading edge of the data relation, but I think it hits the same
block each time.

Only an issue if you have more than one CPU...

-- 
Best Regards, Simon Riggs



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: OpenBSD/Sparc status
Next
From: Josh Berkus
Date:
Subject: Re: [Testperf-general] Re: ExclusiveLock