Re: Recovery will take 10 hours

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Brendan Duddridge <brendan(at)clickspace(dot)com>
Cc: PostgreSQL Performance <pgsql-performance(at)postgresql(dot)org>
Subject: Re: Recovery will take 10 hours
Date: 2006-04-20 21:19:48
Message-ID: 105.1145567988@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

Brendan Duddridge <brendan(at)clickspace(dot)com> writes:
> Do you mean do a kill -QUIT on the postgres process in order to
> generate a stack trace?

Not at all! I'm talking about tracing the kernel calls it's making.
Depending on your platform, the tool for this is called strace,
ktrace, truss, or maybe even just trace. With strace you'd do
something like

strace -p PID-of-process 2>outfile
... wait 30 sec or so ...
control-C

Not sure about the APIs for the others but they're probably roughly
similar ... read the man page ...

regards, tom lane

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Luke Lonergan 2006-04-20 21:21:05 Re: Recovery will take 10 hours
Previous Message Guido Neitzer 2006-04-20 21:19:44 Re: Performance decrease