pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Josh Berkus <josh@agliodbs.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
To: Josh Berkus <josh@agliodbs.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: Performance problems - Indexes and VACUUM
Date: Wed, 17 Oct 2001 08:40:32 -0700
Message-ID: <web-149636@davinci.ethosmedia.com> (raw)
In-Reply-To: <27113.1003332685@sss.pgh.pa.us>

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







view thread (6+ messages)

Message-ID: <web-149636@davinci.ethosmedia.com>
Permalink:  ../web-149636@davinci.ethosmedia.com/
Also on:    postgresql.org/message-id/web-149636@davinci.ethosmedia.com

 · 

reply

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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: josh@agliodbs.com, tgl@sss.pgh.pa.us
  Subject: Re: Performance problems - Indexes and VACUUM
  In-Reply-To: <web-149636@davinci.ethosmedia.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