From: Brendan Duddridge <brendan@clickspace.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: PostgreSQL Performance <pgsql-performance@postgresql.org>
Subject: Re: Recovery will take 10 hours
Date: Thu, 20 Apr 2006 17:15:00 -0600
Message-ID: <3D29F1D5-D0E8-4291-8426-CD0EBD6EC5F5@clickspace.com> (raw)
In-Reply-To: <105.1145567988@sss.pgh.pa.us>
References: <85A15B2E-F59C-4FEF-82D4-61F48ABDCDE5@clickspace.com>
<29439.1145564220@sss.pgh.pa.us>
<47C1F053-EC91-4AEB-9F0B-B538716145D6@clickspace.com>
<105.1145567988@sss.pgh.pa.us>
Hi Tom,
I found it... it's called ktrace on OS X Server.
However, as I just finished posting to the list, the process died
with a PANIC error:
[2006-04-20 16:41:28 MDT] LOG: restored log file
"000000010000018F00000034" from archive
[2006-04-20 16:41:35 MDT] LOG: restored log file
"000000010000018F00000035" from archive
[2006-04-20 16:41:38 MDT] LOG: restored log file
"000000010000018F00000036" from archive
sh: line 1: /wal_archive/000000010000018F00000037.gz: No such file or
directory
[2006-04-20 16:41:46 MDT] LOG: could not open file "pg_xlog/
000000010000018F00000037" (log file 399, segment 55): No such file or
directory
[2006-04-20 16:41:46 MDT] LOG: redo done at 18F/36FFF254
sh: line 1: /wal_archive/000000010000018F00000036.gz: No such file or
directory
[2006-04-20 16:41:46 MDT] PANIC: could not open file "pg_xlog/
000000010000018F00000036" (log file 399, segment 54): No such file or
directory
[2006-04-20 16:41:46 MDT] LOG: startup process (PID 9190) was
terminated by signal 6
[2006-04-20 16:41:46 MDT] LOG: aborting startup due to startup
process failure
[2006-04-20 16:41:46 MDT] LOG: logger shutting down
Would turning off fsync make it go faster? Maybe it won't take 10
hours again if we start from scratch.
Also, what if we did just start it up again? Will postgres realize
that the existing wal_archive files have already been processed and
just skip along until it finds one it hasn't processed yet?
Thanks,
____________________________________________________________________
Brendan Duddridge | CTO | 403-277-5591 x24 | brendan@clickspace.com
ClickSpace Interactive Inc.
Suite L100, 239 - 10th Ave. SE
Calgary, AB T2G 0V9
http://www.clickspace.com
On Apr 20, 2006, at 3:19 PM, Tom Lane wrote:
> Brendan Duddridge <brendan@clickspace.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
>
> ---------------------------(end of
> broadcast)---------------------------
> TIP 9: In versions below 8.0, the planner will ignore your desire to
> choose an index scan if your joining column's datatypes do not
> match
>
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-performance@postgresql.org
Cc: brendan@clickspace.com, tgl@sss.pgh.pa.us
Subject: Re: Recovery will take 10 hours
In-Reply-To: <3D29F1D5-D0E8-4291-8426-CD0EBD6EC5F5@clickspace.com>
References: <85A15B2E-F59C-4FEF-82D4-61F48ABDCDE5@clickspace.com> <29439.1145564220@sss.pgh.pa.us> <47C1F053-EC91-4AEB-9F0B-B538716145D6@clickspace.com> <105.1145567988@sss.pgh.pa.us> <3D29F1D5-D0E8-4291-8426-CD0EBD6EC5F5@clickspace.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox