Re: Recovery inconsistencies, standby much larger than primary - Mailing list pgsql-hackers

From Josh Berkus
Subject Re: Recovery inconsistencies, standby much larger than primary
Date
Msg-id 52EC32EA.8080103@agliodbs.com
Whole thread Raw
In response to Recovery inconsistencies, standby much larger than primary  (Greg Stark <stark@mit.edu>)
Responses Re: Recovery inconsistencies, standby much larger than primary  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On 01/31/2014 01:11 PM, Tom Lane wrote:
> Greg Stark <stark@mit.edu> writes:
>> One thing I keep coming back to is a bad ran chip setting a bit in the
>> block number. But I just can't seem to get it to add up. The difference is
>> not a power of two, it had happened on two different machines, and we don't
>> see other weirdness on the machine. It seems like a strange coincidence it
>> would happen to the same variable twice and not to other variables.
> 
> I also looked at the bit patterns for the two block numbers, and couldn't
> detect any relationship.
> 
>> Unless there's some unrelated code writing through a wild pointer, possibly
>> to a stack allocated object that just happens to often be that variable?
> 
> Yeah, I'd been wondering if the WAL record somehow got corrupted while
> in memory (presumably after being CRC-checked).  It's a bit hard to see
> how though.
> 
> Are all the bloated-on-the-slave relations indexes?  I think the most
> fruitful thing to do at this point is to try to isolate the bloating
> events for the other affected rels as you've done for this one.
> Maybe we'll see a pattern.

FWIW, we've periodically seen reports from our clients of replica
databases being slightly larger than the master.  Nothing reproducable
or as severe as Greg's issue, or we'd have reported it.  But this could
be a more widespread issue, just that it affects most users in the +5%
ballpark, so they don't notice.

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



pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: LDAP: bugfix and deprecated OpenLDAP API
Next
From: Bruce Momjian
Date:
Subject: Re: Redesigning checkpoint_segments