X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id 93353D1B4E7 for ; Fri, 12 Sep 2003 19:28:30 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 29913-10 for ; Fri, 12 Sep 2003 16:28:01 -0300 (ADT) Received: from mail.libertyrms.com (unknown [209.167.124.227]) by svr1.postgresql.org (Postfix) with ESMTP id 3B795D1B4E5 for ; Fri, 12 Sep 2003 16:27:59 -0300 (ADT) Received: from [10.1.2.130] (helo=dba2) by mail.libertyrms.com with esmtp (Exim 3.22 #3 (Debian)) id 19xtaK-0002Ju-00 for ; Fri, 12 Sep 2003 15:28:00 -0400 Received: by dba2 (Postfix, from userid 1019) id 8994DC583; Fri, 12 Sep 2003 15:28:00 -0400 (EDT) Date: Fri, 12 Sep 2003 15:28:00 -0400 From: Andrew Sullivan To: pgsql-admin@postgresql.org Subject: Re: Row locking during UPDATE Message-ID: <20030912192800.GJ26188@libertyrms.info> Mail-Followup-To: Andrew Sullivan , pgsql-admin@postgresql.org References: <20030912133255.GC26074@libertyrms.info> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.4i X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200309/221 X-Sequence-Number: 10309 On Fri, Sep 12, 2003 at 09:53:47AM -0400, David F. Skoll wrote: > > 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. You apparently don't have the contention that we did. Are your transactions short? We had a problem with this sort of design, but I think it was because we had some transactions which ran long and depended on the summarised results. But if it works for you, great. A -- ---- Andrew Sullivan 204-4141 Yonge Street Liberty RMS Toronto, Ontario Canada M2P 2A8 +1 416 646 3304 x110