Skip site navigation (1) Skip section navigation (2)

Re: Aggressive freezing in lazy-vacuum

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: ITAGAKI Takahiro <itagaki(dot)takahiro(at)oss(dot)ntt(dot)co(dot)jp>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Aggressive freezing in lazy-vacuum
Date: 2007-03-07 04:34:57
Message-ID: 14520.1173242097@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-hackerspgsql-patchespgsql-performance
ITAGAKI Takahiro <itagaki(dot)takahiro(at)oss(dot)ntt(dot)co(dot)jp> writes:
> Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
>> I said nothing about expired tuples.  The point of not freezing is to
>> preserve information about the insertion time of live tuples.

> I don't know what good it will do -- for debugging?

Exactly.  As an example, I've been chasing offline a report from Merlin
Moncure about duplicate entries in a unique index; I still don't know
what exactly is going on there, but the availability of knowledge about
which transactions inserted which entries has been really helpful.  If
we had a system designed to freeze tuples as soon as possible, that info
would have been gone forever pretty soon after the problem happened.

I don't say that this behavior can never be acceptable, but you need
much more than a marginal performance improvement to convince me that
it's worth the loss of forensic information.

			regards, tom lane

In response to

pgsql-performance by date

Next:From: Gauri KanekarDate: 2007-03-07 06:43:55
Subject: When the Record Got Updated.
Previous:From: ITAGAKI TakahiroDate: 2007-03-07 02:18:20
Subject: Re: Aggressive freezing in lazy-vacuum

pgsql-hackers by date

Next:From: ITAGAKI TakahiroDate: 2007-03-07 05:11:38
Subject: Re: Log levels for checkpoint/bgwriter monitoring
Previous:From: Greg SmithDate: 2007-03-07 04:14:37
Subject: Re: Log levels for checkpoint/bgwriter monitoring

pgsql-patches by date

Next:From: NikhilSDate: 2007-03-07 06:40:39
Subject: Re: Auto creation of Partitions
Previous:From: Trevor HardcastleDate: 2007-03-07 03:06:29
Subject: CREATE TABLE LIKE INCLUDING INDEXES support

Privacy Policy | About PostgreSQL
Copyright © 1996-2013 The PostgreSQL Global Development Group