From: Tom Lane <tgl@sss.pgh.pa.us>
To: warren little <warren.little@meridiascapital.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Emergency - Need assistance
Date: Mon, 02 Jan 2006 16:34:17 -0500
Message-ID: <12399.1136237657@sss.pgh.pa.us> (raw)
In-Reply-To: <1136233928.16094.33.camel@sharp>
References: <1136228730.16094.12.camel@sharp>
<11864.1136232604@sss.pgh.pa.us>
<1136233928.16094.33.camel@sharp>
warren little <warren.little@meridiascapital.com> writes:
> pg_dump: SQL command failed
> pg_dump: Error message from server: server closed the connection
> unexpectedly
> This probably means the server terminated abnormally
> before or while processing the request.
> pg_dump: The command was: FETCH 100 FROM _pg_dump_cursor
Hmm. This could mean corrupted data files, but it's hard to be sure
without more info.
> I had removed all the files in pg_log prior to getting this error and no
> new logfile was created. I'm guessing I screwed up the logger when
> removing all the files, but I assumed that when writing to the error
> logs the backend would create a file if one did not exist.
The file *does* exist, there's just no directory link to it anymore :-(
You need to force a logfile rotation, which might be most easily done by
stopping and restarting the postmaster.
What you need to do is see the postmaster log entry about the backend
crash. If it's dying on a signal (likely sig11 = SEGV) then inspecting
the core file might yield useful information.
> I currently attempt to run the dump/restore with the zero_damaged_pages
> turned on to see if the results yield something more useful.
That really ought to be the last resort not the first one, because it
will destroy not only data but most of the evidence about what went
wrong...
regards, tom lane
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-admin@postgresql.org
Cc: tgl@sss.pgh.pa.us, warren.little@meridiascapital.com
Subject: Re: Emergency - Need assistance
In-Reply-To: <12399.1136237657@sss.pgh.pa.us>
References: <1136228730.16094.12.camel@sharp> <11864.1136232604@sss.pgh.pa.us> <1136233928.16094.33.camel@sharp> <12399.1136237657@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