From: | Bruce Momjian <bruce(at)momjian(dot)us> |
---|---|
To: | Yaroslav Tykhiy <yar(at)barnet(dot)com(dot)au> |
Cc: | Derrick Rice <derrick(dot)rice(at)gmail(dot)com>, pgsql-general(at)postgresql(dot)org |
Subject: | Re: Warm Standby and resetting the primary as a standby |
Date: | 2010-08-23 21:45:05 |
Message-ID: | 201008232145.o7NLj5i24992@momjian.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Yaroslav Tykhiy wrote:
> On Sat, Aug 21, 2010 at 12:45:44PM -0400, Bruce Momjian wrote:
> > Derrick Rice wrote:
> > > I've been reading up on the documentation for WAL shipping and warm standby
> > > configuration. One concern that I have (a common one, I'm sure) is that it
> > > seems that after bringing a standby server up as primary, other standby
> > > servers (including the original primary) need to be rebased before they can
> > > read the new primary's WALs in continuous recovery mode.
> > >
> > > It seems that the cause of this is a change to the leading digit of the WAL
> > > files:
> > >
> > > http://archives.postgresql.org/pgsql-general/2010-03/msg00985.php
> > > http://archives.postgresql.org/pgsql-admin/2009-08/msg00179.php
> > >
> > > I was hoping that someone would shed some light on this situation with a
> > > technical explanation. It's not clear to me why the WAL files are
> > > incompatible or why the digit increases. What does that first digit mean to
> > > postgresql? Is it possible to have the restore_command ignore the leading
> > > digit?
> >
> > The first digit in the WAL filename is the timeline.
> >
> > I think we need to figure out a better way to promote slaves when there
> > is a new master, but no one has done the research yet.
>
> In Postgresql 8.0, I used to rely on what seemed to be a bug in it when
> it didn't switch timelines if restore_command returned a non-zero status,
> and that worked like a charm more than once for me. Can switching time-
> lines be just made optional in recovery.conf or depending on what
> restore_command returns? Sorry if I'm missing any important architectural
> points here.
Sorry, I don't know. I think the timelines are only there for safety if
you have to fall back to the previous timeline, and to prevent timeline
mixing.
--
Bruce Momjian <bruce(at)momjian(dot)us> http://momjian.us
EnterpriseDB http://enterprisedb.com
+ It's impossible for everything to be true. +
From | Date | Subject | |
---|---|---|---|
Next Message | Derrick Rice | 2010-08-23 21:51:22 | Re: Warm Standby and resetting the primary as a standby |
Previous Message | A.M. | 2010-08-23 20:41:55 | pg_notify but no pg_listen? |