From: Tom Lane <tgl@sss.pgh.pa.us>
To: Ian Lance Taylor <ian@airs.com>
Cc: pgsql-hackers@postgresql.org
Subject: Re: Re: [SQL] PostgreSQL crashes on me :(
Date: Mon, 18 Dec 2000 13:18:26 -0500
Message-ID: <20256.977163506@sss.pgh.pa.us> (raw)
In-Reply-To: <20001218175802.29750.qmail@daffy.airs.com>
References: <20001217215118.D64770@ilse.nl>
<21339.977111275@sss.pgh.pa.us>
<20001217230141.A28714@store.zembu.com>
<19085.977154107@sss.pgh.pa.us>
<20001218175802.29750.qmail@daffy.airs.com>
Ian Lance Taylor <ian@airs.com> writes:
> Any thoughts on a cleaner solution?
> One way to avoid this race condition is to set a timeout on the
> select. What is the maximum acceptable time for a timely response?
I thought about that, but it doesn't seem like a cleaner solution.
Basically you'd have to figure a tradeoff between wasted cycles in
the postmaster and time delay to respond to a crashed backend.
And there's no good tradeoff there. If you have a backend crash,
you want to shut down the other backends ASAP, before they have a
chance to propagate any shared-memory corruption that the failed
backend might've created. The entire exercise is probably pointless
if the postmaster twiddles its thumbs for awhile before killing the
other backends.
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, ian@airs.com, pgsql-hackers@postgresql.org
Subject: Re: [SQL] PostgreSQL crashes on me :(
In-Reply-To: <20256.977163506@sss.pgh.pa.us>
References: <20001217215118.D64770@ilse.nl> <21339.977111275@sss.pgh.pa.us> <20001217230141.A28714@store.zembu.com> <19085.977154107@sss.pgh.pa.us> <20001218175802.29750.qmail@daffy.airs.com> <20256.977163506@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