Skip site navigation (1) Skip section navigation (2)

Re: BUG #7500: hot-standby replica crash after an initial rsync

From: Maxim Boguk <maxim(dot)boguk(at)gmail(dot)com>
To: Andres Freund <andres(at)2ndquadrant(dot)com>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #7500: hot-standby replica crash after an initial rsync
Date: 2012-08-21 13:30:44
Message-ID: CAK-MWwTNY3Z4hDS=JoUZSLwaPgw2Udu6acPAN40u72rFP5+SZw@mail.gmail.com (view raw or flat)
Thread:
Lists: pgsql-bugs
Hi Andres,


> > I have some problems with debug startup process with gdb...
> > I following next sequence of commands (and got no useful results):
> Youre debugging the postmaster that way. The easiest way would be to just
> attach to the startup process with gdb -p. Not sure if you can manage that
> timingwise without manually adding sleeps.
>

It's imposible without added sleep seems. Too fast for me.
Where I should add sleep call in PostgreSQL source? (process managment part
of PostgreSQL isn't known for me at all).


>
> Otherwise you probably will have to work with "set follow-fork-mode ask" in
> gdb. Getting to the right child isn't easy though.
>

Unfortunatelly gdb under FreeBSD doesn't suport set follow-fork-mode.

Kind Regards,
Maksy

In response to

Responses

pgsql-bugs by date

Next:From: Freddie BurgessDate: 2012-08-21 15:58:57
Subject: Database crash in Postgres 8.4.3
Previous:From: Andres FreundDate: 2012-08-21 12:58:33
Subject: Re: BUG #7500: hot-standby replica crash after an initial rsync

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group