Re: testing cvs HEAD - HS/SR - xlog timeline 0 pg_xlogfile_name_offset

From: "Erik Rijkers" <er(at)xs4all(dot)nl>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Re: testing cvs HEAD - HS/SR - xlog timeline 0 pg_xlogfile_name_offset
Date: 2010-02-24 21:12:58
Message-ID: 7a377e02defc4cd66f53f2ed82ec4f1e.squirrel@webmail.xs4all.nl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers


I should have added that (on the slave) all pg_xlog/ files have timeline 1
like: 00000001000000E2000000C0

On Wed, February 24, 2010 20:40, Erikruary 24, 2010 20:40, Er Rijkers wrote:
> I have two 9.0devel machines (*not* alpha but cvs as of 2010.02.19 22.48).
>
> One primary, one slave.
>
> In an attempt to keep track of standby progression (versus primary), I ran slave-side:
>
> replicas=# select
> pg_last_xlog_replay_location()
> pg_xlogfile_name_offset(pg_last_xlog_replay_location())
> , pg_last_xlog_receive_location()
> , pg_xlogfile_name_offset(pg_last_xlog_receive_location())
> ;
> pg_last_xlog_replay_location | pg_xlogfile_name_offset |
> ------------------------------+------------------------------------+-
> E2/C012AD90 | (00000000000000E2000000C0,1224080) |
>
> pg_last_xlog_receive_location | pg_xlogfile_name_offset
> -------------------------------+-----------------------------------
> E2/C012AD90 | (00000000000000E2000000C0,1224080)
> (1 row)
>
> These zero-timeline filenames look suspicious, no?
> I understand timeline-count to normally start at 1, not 0?
>
> The replication seems to be running fine (680 GB).
>
> ps seems to report the right xlog filename (slave):
>
> /var/data1/pg_stuff/pg_installations/pgsql.sr_hotslave/bin/postgres -D
> /var/data1/pg_stuff/pg_installations/pgsql.sr_hotslave/data
> \_ postgres: startup process recovering 00000001000000E2000000C0
> \_ postgres: wal receiver process streaming E2/C012AE28
> \_ postgres: writer process
> \_ postgres: stats collector process
>
>
>
> replicas=# select version();
> version
> ------------------------------------------------------------------------------------------
> PostgreSQL 9.0devel on x86_64-unknown-linux-gnu, compiled by GCC gcc (GCC) 4.4.3, 64-bit
> (1 row)
>
>
> Is the filename that pg_xlogfile_name_offset( pg_last_xlog_(replay|receive)_location() ) reports a
> bug, or expected as shown?
>
>
> thanks,
>
>
> Erik Rijkers
>
>
> --
> Sent via pgsql-hackers mailing list (pgsql-hackers(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-hackers
>

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Stefan Kaltenbrunner 2010-02-24 21:23:31 Re: SR/libpq - outbound interface/ipaddress binding
Previous Message Tom Lane 2010-02-24 21:01:02 Re: pg_stop_backup does not complete