pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Hannu Krosing <hannu@tm.ee>
To: Tatsuo Ishii <t-ishii@sra.co.jp>
Cc: tgl@sss.pgh.pa.us
Cc: marty@outputservices.com
Cc: herve@elma.fr
Cc: pgsql-performance@postgresql.org
Subject: Re: PostgreSQL clustering VS MySQL clustering
Date: Tue, 25 Jan 2005 12:42:47 +0200
Message-ID: <1106649767.5790.18.camel@fuji.krosing.net> (raw)
In-Reply-To: <20050124.115244.35008937.t-ishii@sra.co.jp>
References: <41F14758.4030602@outputservices.com>
	<20050122.121300.41631131.t-ishii@sra.co.jp>
	<25335.1106428223@sss.pgh.pa.us>
	<20050124.115244.35008937.t-ishii@sra.co.jp>

Ühel kenal päeval (esmaspäev, 24. jaanuar 2005, 11:52+0900), kirjutas
Tatsuo Ishii:
> > Tatsuo Ishii <t-ishii@sra.co.jp> writes:
> > > Probably VACUUM works well for small to medium size tables, but not
> > > for huge ones. I'm considering about to implement "on the spot
> > > salvaging dead tuples".
> > 
> > That's impossible on its face, except for the special case where the
> > same transaction inserts and deletes a tuple.  In all other cases, the
> > transaction deleting a tuple cannot know whether it will commit.
> 
> Of course. We need to keep a list of such that tuples until commit or
> abort.

what about other transactions, which may have started before current one
and be still running when current one commites ?


I once proposed an extra parameter added to VACUUM FULL which determines
how much free space to leave in each page vacuumed. If there were room
the new tuple could be placed near the old one in most cases and thus
avoid lots of disk head movement when updating huge tables in one go.

------------

Hannu Krosing <hannu@tm.ee>



view thread (131+ messages)  latest in thread

Message-ID: <1106649767.5790.18.camel@fuji.krosing.net>
Permalink:  ../1106649767.5790.18.camel@fuji.krosing.net/
Also on:    postgresql.org/message-id/1106649767.5790.18.camel@fuji.krosing.net

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: hannu@tm.ee, t-ishii@sra.co.jp, tgl@sss.pgh.pa.us, marty@outputservices.com, herve@elma.fr
  Subject: Re: PostgreSQL clustering VS MySQL clustering
  In-Reply-To: <1106649767.5790.18.camel@fuji.krosing.net>

* 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