Re: Incomplete freezing when truncating a relation during vacuum - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Incomplete freezing when truncating a relation during vacuum
Date
Msg-id 5226.1385931281@sss.pgh.pa.us
Whole thread Raw
In response to Re: Incomplete freezing when truncating a relation during vacuum  (Andres Freund <andres@2ndquadrant.com>)
Responses Re: Incomplete freezing when truncating a relation during vacuum
List pgsql-hackers
Andres Freund <andres@2ndquadrant.com> writes:
> Tom Lane <tgl@sss.pgh.pa.us> schrieb:
>> Uh ... what does the last have to do with it?  Surely we don't run
>> VACUUM on replicas.  Or are you talking about what might happen when
>> VACUUM is run on a former replica that's been promoted to master?

> Unfortunately not. The problem is that xl_heap_freeze's redo function simply reexecutes heap-freeze-tuple() instead
oflogging much about each tuple...
 

That was a pretty stupid choice ... we should think seriously about
changing that for 9.4.  In general the application of a WAL record
needs to be 100% deterministic.
        regards, tom lane



pgsql-hackers by date:

Previous
From: Andres Freund
Date:
Subject: Re: Incomplete freezing when truncating a relation during vacuum
Next
From: Tom Lane
Date:
Subject: Re: Incomplete freezing when truncating a relation during vacuum