From: Tom Lane <tgl@sss.pgh.pa.us>
To: Mathijs Brands <mathijs@ilse.nl>
Cc: Ian Lance Taylor <ian@airs.com>
Cc: pgsql-hackers@postgresql.org
Subject: Re: Re: [SQL] PostgreSQL crashes on me :(
Date: Mon, 18 Dec 2000 15:16:26 -0500
Message-ID: <1387.977170586@sss.pgh.pa.us> (raw)
In-Reply-To: <20001218202807.B6174@ilse.nl>
References: <20001217215118.D64770@ilse.nl>
<21339.977111275@sss.pgh.pa.us>
<20001218173340.29569.qmail@daffy.airs.com>
<20037.977161232@sss.pgh.pa.us>
<20001218202807.B6174@ilse.nl>
Mathijs Brands <mathijs@ilse.nl> writes:
> I've worked around the situation by running a small script that continually
> monitors postgres and takes appropriate action if postgres shuts down. I'm
> assuming this problem won't lead to any data corruption.
Hm. The problem here is that when the postmaster crashes, it probably
doesn't take down the old backends with it. So if you auto-restart
the postmaster, you may have two sets of backends that don't know about
each other. That would be A Bad Thing.
If your script kills off all the backends it can find before starting
the new postmaster, that should work OK.
A better solution would be to back-patch my errno fix into 7.0.3.
You can see the diff as it stands for current sources at
http://www.postgresql.org/cgi/cvsweb.cgi/pgsql/src/backend/postmaster/postmaster.c.diff?r1=1.198&...
The additions to reaper() are probably the only part you really need.
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-sql@postgresql.org
Cc: tgl@sss.pgh.pa.us, mathijs@ilse.nl, ian@airs.com, pgsql-hackers@postgresql.org
Subject: Re: [SQL] PostgreSQL crashes on me :(
In-Reply-To: <1387.977170586@sss.pgh.pa.us>
References: <20001217215118.D64770@ilse.nl> <21339.977111275@sss.pgh.pa.us> <20001218173340.29569.qmail@daffy.airs.com> <20037.977161232@sss.pgh.pa.us> <20001218202807.B6174@ilse.nl> <1387.977170586@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