Re: vacuum internals and performance affect

From: Josh Berkus <josh(at)agliodbs(dot)com>
To: pgsql-performance(at)postgresql(dot)org
Subject: Re: vacuum internals and performance affect
Date: 2011-12-01 18:01:57
Message-ID: 4ED7C115.4010607@agliodbs.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

MirrorX,

> so when a transaction is still open from a while back (according to the
> transactionID), no 'new dead' tuples can be marked as re-usable space for
> new rows, right? by 'new dead' i mean that for example there is a
> transaction running from 10.00am(with a specific transactionID). when i
> delete rows at 11.00am these are the ones i am referring to.

With the understanding that what we're actually checking is snapshots
(which are not completely linear) and not timestamps, yes, that's a good
simplification for what happens.

> but, for these rows, the 'deleted' ones. does vacuum do anything at all at
> that time? and if so, what is it? thx in advance

No, it does nothing. What would it do?

--
Josh Berkus
PostgreSQL Experts Inc.
http://pgexperts.com

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Robert Haas 2011-12-01 18:18:53 Re: Autovacuum Issue
Previous Message Jeff Janes 2011-12-01 15:06:42 Re: Guidance Requested - Bulk Inserting + Queries