From: Tom Lane <tgl@sss.pgh.pa.us>
To: Jeff Boes <jboes@nexcerpt.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Leftover TEMPORARY tables?
Date: Thu, 24 Apr 2003 09:49:43 -0400
Message-ID: <13232.1051192183@sss.pgh.pa.us> (raw)
In-Reply-To: <1051191606.26849.8.camel@takin.private.nexcerpt.com>
References: <d40a65a1.0304230902.570c9a84@posting.google.com>
<10774.1051156267@sss.pgh.pa.us>
<1051191606.26849.8.camel@takin.private.nexcerpt.com>
Jeff Boes <jboes@nexcerpt.com> writes:
> On Wed, 2003-04-23 at 23:51, Tom Lane wrote:
>> In theory, never. Do you have frequent backend crashes?
> Not "frequent", although I suppose that depends on what you mean. We get
> this error:
> The Postmaster has informed me that some other backend
> died abnormally and possibly corrupted shared memory.
> about every 2 weeks or so ... I think that's where the leftover tables
> come from. The tables persist through a database shutdown and restart.
Yeah, if a backend crashes then there is no mechanism that can cause its
temp tables to go away (before 7.3 anyway). Also, because a crash in
one backend is a crash in all, thanks to the postmaster's scorched-earth
approach to crash recovery, you could be leaking temp tables from
backends that didn't have anything directly to do with the crash. So I
think the above observation explains your leaked temp tables.
But a backend crash every two weeks is too often for my taste. Have you
tried to gather any more info about the crashes? A stack backtrace from
the core dump would be valuable information. (If you don't get core
dumps, it's probably because the postmaster is started under "ulimit -c 0",
which is the default setting on far too many Unixen. Try putting
"ulimit -c unlimited" into the script that starts the postmaster.)
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, jboes@nexcerpt.com
Subject: Re: Leftover TEMPORARY tables?
In-Reply-To: <13232.1051192183@sss.pgh.pa.us>
References: <d40a65a1.0304230902.570c9a84@posting.google.com> <10774.1051156267@sss.pgh.pa.us> <1051191606.26849.8.camel@takin.private.nexcerpt.com> <13232.1051192183@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