| 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 |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| 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
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Freddie Burgess | 2012-08-21 15:58:57 | Database crash in Postgres 8.4.3 |
| Previous Message | Andres Freund | 2012-08-21 12:58:33 | Re: BUG #7500: hot-standby replica crash after an initial rsync |