Re: Recovery inconsistencies, standby much larger than primary

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Greg Stark <stark(at)mit(dot)edu>
Cc: Andres Freund <andres(at)2ndquadrant(dot)com>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Recovery inconsistencies, standby much larger than primary
Date: 2014-01-31 15:41:48
Message-ID: 14712.1391182908@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Greg Stark <stark(at)mit(dot)edu> writes:
> On Fri, Jan 31, 2014 at 3:19 PM, Andres Freund <andres(at)2ndquadrant(dot)com> wrote:
>> Isn't the page 3634978?

> The page in the record is.

> But the page on disk is in the 54th segment at offset 1F0C0000

> So unless my arithmetic is wrong:

> bc -l
> ibase=16
> 400 * 400 * 400 / 2000 * 54 + 1F0C0000 / 2000
> 11073632

At least two of us are confused. I get

# select ((2^30) * 54.0 + 'x1F0C0000'::bit(32)::int) / 8192;
?column?
----------
7141472
(1 row)

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Robert Haas 2014-01-31 15:42:57 Re: Regression tests failing if not launched on db "regression"
Previous Message Andres Freund 2014-01-31 15:37:39 Re: Recovery inconsistencies, standby much larger than primary