From: | "David F(dot) Skoll" <dfs(at)roaringpenguin(dot)com> |
---|---|
To: | Andrew Sullivan <andrew(at)libertyrms(dot)info> |
Cc: | pgsql-admin(at)postgresql(dot)org |
Subject: | Re: Row locking during UPDATE |
Date: | 2003-09-12 13:53:47 |
Message-ID: | Pine.LNX.4.58.0309120952220.2270@shishi.roaringpenguin.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin |
On Fri, 12 Sep 2003, Andrew Sullivan wrote:
> More or less, yes. The significant part here is that the postmaster
> won't notice that the client is gone until it returns from the work
> it was trying to do. It'll eventually come back, but it'll take some
> time. How low does your contention need to be?
Low, low, low... near real-time response is required.
> If you're going to summarise anyway, why not just always insert into
> a "holding" table, and then periodically (infrequently, though)
> select out of there and summarise at that point.
This is the solution I picked (thanks to Tom Lane) and it seems to work
well.
> Note that if you do
> this very frequently, and you have also to select the summary data,
> it won't work (as I have learned from painful experience) because
> the holding table will gradually build up a lot of dead tuples.
That doesn't seem to be a problem; after the summary, I do a
VACUUM and the holding table seems to shrink down nicely.
Regards,
David.
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2003-09-12 14:00:14 | Re: pg 7.3.4 and linux box crash |
Previous Message | pginfo | 2003-09-12 13:51:57 | Re: pg 7.3.4 and linux box crash |