Re: *sigh* - Mailing list pgsql-hackers

From Greg Stark
Subject Re: *sigh*
Date
Msg-id 874qwmffqc.fsf@stark.dyndns.tv
Whole thread Raw
In response to Re: *sigh*  (Gaetano Mendola <mendola@bigfoot.com>)
List pgsql-hackers
Gaetano Mendola <mendola@bigfoot.com> writes:

> The count(*) information can be revisioned too, am I wrong ? I'm able to
> create a trigger that store the count(*) information in a special table,
> why not implement the same in a way "builded in" ?

Then every insert or delete would have to lock that count. Nobody else would
be able to insert or delete any records until you either commit or roll back.

That would lead to much lower concurrency, much more contention for locks, and
tons of deadlocks.

-- 
greg



pgsql-hackers by date:

Previous
From: Joe Conway
Date:
Subject: Re: Patch queue
Next
From: Greg Stark
Date:
Subject: Re: -fpic vs. -fPIC