Received: from localhost (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 7292064FCE9 for ; Thu, 18 Dec 2008 09:01:19 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 25416-04 for ; Thu, 18 Dec 2008 09:01:13 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from lists.commandprompt.com (host-159.commandprompt.net [207.173.203.159]) by mail.postgresql.org (Postfix) with ESMTP id 577C664FCE3 for ; Thu, 18 Dec 2008 09:01:13 -0400 (AST) Received: from perhan.alvh.no-ip.org (190-95-20-42.bk17-dsl.surnet.cl [190.95.20.42]) (authenticated bits=0) by lists.commandprompt.com (8.13.8/8.13.8) with ESMTP id mBID4jWt023278 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 18 Dec 2008 05:04:48 -0800 Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 28ED847CCD; Thu, 18 Dec 2008 09:59:35 -0300 (CLST) Date: Thu, 18 Dec 2008 09:59:35 -0300 From: Alvaro Herrera To: Michael Monnerie Cc: pgsql-admin@postgresql.org Subject: Re: DROP INDEX causes errors Message-ID: <20081218125935.GB5447@alvh.no-ip.org> References: <200812172309.54457@zmi.at> <200812181123.11537@zmi.at> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200812181123.11537@zmi.at> User-Agent: Mutt/1.5.18 (2008-05-17) X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.0 (lists.commandprompt.com [207.173.203.159]); Thu, 18 Dec 2008 05:04:49 -0800 (PST) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200812/142 X-Sequence-Number: 30975 Michael Monnerie wrote: > On Mittwoch 17 Dezember 2008 Michael Monnerie wrote: > > for each and every delete of a row in that table. After a > > REINDEX TABLE dbmail_messageblks; > > everything seems to work. > > I was wrong, still get this error: > Dec 18 10:55:33 db2.zmi.at postgres[2816]: [112-1] DELETE:ERROR: could > not open relation with OID 102021 > Dec 18 10:55:33 db2.zmi.at postgres[2816]: [112-2] DELETE:CONTEXT: SQL > statement "DELETE FROM ONLY "public"."dbmail_messageblks" Does it persist if you close the connection and open a new one? -- Alvaro Herrera http://www.CommandPrompt.com/ PostgreSQL Replication, Consulting, Custom Development, 24x7 support