Received: from davinci.ethosmedia.com (davinci.ethosmedia.com [209.10.40.250]) by postgresql.org (8.11.3/8.11.4) with ESMTP id f9HFecP52612 for ; Wed, 17 Oct 2001 11:40:38 -0400 (EDT) (envelope-from josh@agliodbs.com) Received: from [209.10.40.250] (account ) by davinci.ethosmedia.com (CommuniGate Pro WebUser 3.4.1) with HTTP id 149636; Wed, 17 Oct 2001 08:40:32 -0700 From: "Josh Berkus" Subject: Re: Performance problems - Indexes and VACUUM To: Tom Lane , "Josh Berkus" Cc: pgsql-sql@postgresql.org X-Mailer: CommuniGate Pro Web Mailer v.3.4.1 Date: Wed, 17 Oct 2001 08:40:32 -0700 Message-ID: In-Reply-To: <27113.1003332685@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="_===149636====davinci.ethosmedia.com===_" X-Archive-Number: 200110/242 X-Sequence-Number: 5197 This is a multi-part MIME message --_===149636====davinci.ethosmedia.com===_ Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit Tom, > I don't believe a single word of that explanation ... whatever is > going > on here, that ain't it. A new table is going to have a new OID, and > so will its indexes; there is no way that Postgres will confuse it > with > the old one, even if bits of the old one were still hanging around > somehow (which I don't believe either). You're the expert. All I know for a fact is that when I didn't explicitly drop the indexes, I got weird results; when I did explicitly drop them, I didn't. The whole system is complex enough that the problem is hard to reproduce without reproducing the whole system (which I'd be happy to do for you, only it contains confidential data). From the sound of it, I'm the only one who's encountered this. > One thing to think about, if you are dropping and recreating tables > in > a plpgsql function, is that you probably need to do it with EXECUTE > to avoid plan caching. OK. Will do. Thanks. This may also cure the intermittent index/whatever issue. > Not unless your kernel or hardware are broken. But I have seen cases > where hardware problems (eg, bogus DMA controller) manifested > themselves > only as database errors. Evidently Postgres was pushing the disk > harder > than anything else on the system, so it was more likely to get bit by > a sporadic hardware booboo. Thanks! -Josh --_===149636====davinci.ethosmedia.com===_ Content-Type: text/plain Content-Disposition: attachment; filename="" Content-Transfer-Encoding: base64 DQo= --_===149636====davinci.ethosmedia.com===_ Content-Type: text/plain Content-Disposition: attachment; filename="" Content-Transfer-Encoding: base64 DQo= --_===149636====davinci.ethosmedia.com===_ Content-Type: text/plain Content-Disposition: attachment; filename="" Content-Transfer-Encoding: base64 DQo= --_===149636====davinci.ethosmedia.com===_--