pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Robert Treat <xzilla@users.sourceforge.net>
Cc: Richard Huxton <dev@archonet.com>
Cc: Tambet Matiisen <t.matiisen@aprote.ee>
Cc: pgsql-performance@postgresql.org
Subject: Re: One tuple per transaction
Date: Tue, 15 Mar 2005 18:51:19 -0500
Message-ID: <818.1110930679@sss.pgh.pa.us> (raw)
In-Reply-To: <200503151652.30266.xzilla@users.sourceforge.net>
References: <A66A11DBF5525341AEF6B8DE39CDE770088052@black.aprote.com>
	<4236ACE5.1040004@archonet.com>
	<200503151652.30266.xzilla@users.sourceforge.net>

Robert Treat <xzilla@users.sourceforge.net> writes:
>  On a similar note I was just wondering if it would be possible to
> mark any of these dead tuples as ready to be reused at transaction
> commit time, since we know that they are dead to any and all other
> transactions currently going on.

I believe VACUUM already knows that xmin = xmax implies the tuple
is dead to everyone.

> This would save you from having to vacuum to get the tuples marked
> ready for reuse.

No; you forgot about reclaiming associated index entries.

			regards, tom lane



view thread (12+ messages)  latest in thread

Message-ID: <818.1110930679@sss.pgh.pa.us>
Permalink:  ../818.1110930679@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/818.1110930679@sss.pgh.pa.us

 · 

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: tgl@sss.pgh.pa.us, xzilla@users.sourceforge.net, dev@archonet.com, t.matiisen@aprote.ee
  Subject: Re: One tuple per transaction
  In-Reply-To: <818.1110930679@sss.pgh.pa.us>

* 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