pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andrew Sullivan <andrew@libertyrms.info>
To: pgsql-admin@postgresql.org
Subject: Re: Row locking during UPDATE
Date: Fri, 12 Sep 2003 15:28:00 -0400
Message-ID: <20030912192800.GJ26188@libertyrms.info> (raw)
In-Reply-To: <Pine.LNX.4.58.0309120952220.2270@shishi.roaringpenguin.com>
References: <Pine.LNX.4.55.0309040812310.1962@shishi.roaringpenguin.com>
	<20030912133255.GC26074@libertyrms.info>
	<Pine.LNX.4.58.0309120952220.2270@shishi.roaringpenguin.com>

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
<andrew@libertyrms.info>                              M2P 2A8
                                         +1 416 646 3304 x110




view thread (9+ messages)

Message-ID: <20030912192800.GJ26188@libertyrms.info>
Permalink:  ../20030912192800.GJ26188@libertyrms.info/
Also on:    postgresql.org/message-id/20030912192800.GJ26188@libertyrms.info

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: andrew@libertyrms.info
  Subject: Re: Row locking during UPDATE
  In-Reply-To: <20030912192800.GJ26188@libertyrms.info>
  References: <Pine.LNX.4.55.0309040812310.1962@shishi.roaringpenguin.com> <20030912133255.GC26074@libertyrms.info> <Pine.LNX.4.58.0309120952220.2270@shishi.roaringpenguin.com> <20030912192800.GJ26188@libertyrms.info>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox