pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feed From: Tom Lane <tgl@sss.pgh.pa.us>
To: Joe Conway <mail@joeconway.com>
Cc: Robert Burgholzer <rburghol@vt.edu>
Cc: Burgholzer, Robert (DEQ) <Robert.Burgholzer@deq.virginia.gov>
Cc: Scott Marlowe <scott.marlowe@gmail.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: diagnosing a db crash - server exit code 2
Date: Mon, 03 Oct 2011 19:10:45 -0400
Message-ID: <23681.1317683445@sss.pgh.pa.us> (raw )
In-Reply-To: <4E89F0CF.9080807@joeconway.com >
References: <B6C40D17104BEF47B1CB85623CDFAC6357BE26@COVMSGCES-EMB13.cov.virginia.gov >
<4E7CDCA6.6060803@joeconway.com >
<B6C40D17104BEF47B1CB85623CDFAC6357BE27@COVMSGCES-EMB13.cov.virginia.gov >
<CAOR=d=3BoU+CRsOLVWY7a870cdQ2uc9KQcBA43cT-5J1_CKhow@mail.gmail.com >
<B6C40D17104BEF47B1CB85623CDFAC6357BE2A@COVMSGCES-EMB13.cov.virginia.gov >
<4E7CF42E.2050904@joeconway.com >
<B6C40D17104BEF47B1CB85623CDFAC6357BE2F@COVMSGCES-EMB13.cov.virginia.gov >
<CACT-NGKP07Ku5y7=JdOFDx+PYv-5w70CAv=N8yuc4w2HeSotHQ@mail.gmail.com >
<4E84AB05.1050106@joeconway.com >
<B6C40D17104BEF47B1CB85623CDFAC6302DD473B@COVMSGCES-EMB13.cov.virginia.gov >
<CACT-NGJNW92jOFfp9N4u9APrmV0WjnJwg1ix37-yESWWSCDO2g@mail.gmail.com >
<4E89F0CF.9080807@joeconway.com >
Joe Conway <mail@joeconway.com> writes:
> On 10/03/2011 10:10 AM, Robert Burgholzer wrote:
>> FWIW - I am currently trying this while tracing the process that I
>> assume is the postmaster (/usr/bin/postgres -D /home/postgres/data),
>> since this process number indicates that it was recently restarted -
>> although the other PG processes, writer, wal writer, autovacuum, stats
>> collector all have their older pids indicating that they still survive.
> Sounds like you are attaching to the wrong process. Try something like
> the below...
No need to guess about it ... use "select pg_backend_pid();" and then
attach to that process. (BTW, the "postmaster" is the parent process.
The one you want to debug is a backend.)
regards, tom lane
view thread (24+ messages) latest in thread
Message-ID: <23681.1317683445@sss.pgh.pa.us>
Permalink: ../23681.1317683445@sss.pgh.pa.us/
Also on: postgresql.org/message-id/23681.1317683445@sss.pgh.pa.us
copy link · copy postgr.es
reply 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 using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: tgl@sss.pgh.pa.us, mail@joeconway.com, rburghol@vt.edu, Robert.Burgholzer@deq.virginia.gov, scott.marlowe@gmail.com
Subject: Re: diagnosing a db crash - server exit code 2
In-Reply-To: <23681.1317683445@sss.pgh.pa.us>
* 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