From: Jeff Boes <jboes@nexcerpt.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-admin@postgresql.org
Subject: Re: Leftover TEMPORARY tables?
Date: 24 Apr 2003 09:40:06 -0400
Message-ID: <1051191606.26849.8.camel@takin.private.nexcerpt.com> (raw)
In-Reply-To: <10774.1051156267@sss.pgh.pa.us>
References: <d40a65a1.0304230902.570c9a84@posting.google.com>
<10774.1051156267@sss.pgh.pa.us>
On Wed, 2003-04-23 at 23:51, Tom Lane wrote:
> In theory, never. Do you have frequent backend crashes? Is it possible
> that the backend sessions that created these tables are actually still
> running?
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.
>
> If you're quite certain that the sessions that created those tables are
> dead, it is safe to issue DROPs against them. I am not sure whether you
> have to jump through any hoops to do so though --- the protection
> checks against dropping system tables look for "pg_XXX" and so are
> likely to mutiny :-(. You might need to run a standalone backend with
> the -O command-line switch to get around that protection check.
>
No, the permissions were no problem: I DROPped them from a superuser
account. (I also found out, while doing this on a non-production
server, that if you DROP a temporary table that's owned by a LIVE
process, you can trigger the aforementioned Postmaster shared memory
complaint!)
> PG 7.3 handles this scenario a little better, but I take it you haven't
> upgraded yet ...
Nope, not yet ...
--
Jeff Boes vox 269.226.9550 ext 24
Database Engineer fax 269.349.9076
Nexcerpt, Inc. http://www.nexcerpt.com
...Nexcerpt... Extend your Expertise
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: jboes@nexcerpt.com, tgl@sss.pgh.pa.us
Subject: Re: Leftover TEMPORARY tables?
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>
* 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