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

Re: Freezing is not WAL-logged

From: "Heikki Linnakangas" <heikki(at)enterprisedb(dot)com>
To: "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: <pgsql-bugs(at)postgresql(dot)org>
Subject: Re: Freezing is not WAL-logged
Date: 2006-10-19 20:29:51
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-bugs
Tom Lane wrote:
> "Heikki Linnakangas" <heikki(at)enterprisedb(dot)com> writes:
>> I just noticed that freezing a tuple (in vacuumlazy.c) is not 
>> WAL-logged.
> The theory is that this doesn't matter because the tuple is committed
> either way ... it's equivalent to a hint-bit update which we don't
> WAL-log either.

Because the relminxid-update is WAL-logged, you can get into situation 
where relminxid > the real smallest xid of the table, as demonstrated by 
the example I gave. relminxid is used to determine the safe clog cut-off 
point, so that's not harmless.

Granted, the chances of getting data corruption from this are small, but 
it's possible.

   Heikki Linnakangas

In response to

pgsql-bugs by date

Next:From: Jim C. NasbyDate: 2006-10-20 05:27:21
Subject: Re: hello
Previous:From: Alvaro HerreraDate: 2006-10-19 19:22:04
Subject: Re: Freezing is not WAL-logged

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