From: Bruce Momjian <maillist@candle.pha.pa.us>
To: gjerde@icebox.org
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-sql@postgreSQL.org
Subject: Re: [SQL] JOIN index/sequential select problem
Date: Thu, 13 May 1999 01:22:29 -0400 (EDT)
Message-ID: <199905130522.BAA29263@candle.pha.pa.us> (raw)
In-Reply-To: <Pine.LNX.4.05.9905122337170.199-100000@snowman.icebox.org>
> On Wed, 12 May 1999, Tom Lane wrote:
> > gjerde@icebox.org writes:
> > > Then postgres is not guessing right. Even tho the table only has
> > > ~200 rows, the query still takes forever to finish. I have let it go for
> > > a few minutes, and it still wasn't done..
> > Something wrong there; even with a nested loop, it shouldn't take more
> > than a few seconds to process that query. Please dig into it a little
> > more (do you have gprof?) and find where it's spending the time.
>
> Yes, it definately takes too long. I just let it run its course with
> profiling on, and it took a good 25 minutes.
>
> Compiling postgres with -pg created 2 gmon.out files. One in postgres
> home dir(/home/postgres/) and one in the database
> directory(/home/postgres/data/base/parts). The first one had very little
> in it, while the second one is the one below, which seemed to be the right
> stuff.
>
> gprof says:
> % cumulative self self total
> time seconds seconds calls us/call us/call name
> 100.00 0.01 0.01 3 3333.33 3333.33 ValidatePgVersion
Yikes. ValidatePGVersion. Seems you are in a loop in there somehow. I
bet you have a terrible mismatch somewhere.
--
Bruce Momjian | http://www.op.net/~candle
maillist@candle.pha.pa.us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026
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-sql@postgresql.org
Cc: maillist@candle.pha.pa.us, gjerde@icebox.org, tgl@sss.pgh.pa.us
Subject: Re: [SQL] JOIN index/sequential select problem
In-Reply-To: <199905130522.BAA29263@candle.pha.pa.us>
References: <Pine.LNX.4.05.9905122337170.199-100000@snowman.icebox.org> <199905130522.BAA29263@candle.pha.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