Skip site navigation (1) Skip section navigation (2)

Re: Problem with an Identical Query

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Rob Schall <rschall(at)callone(dot)net>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: Problem with an Identical Query
Date: 2007-03-01 15:36:01
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-bugs
Rob Schall <rschall(at)callone(dot)net> writes:
> I have to queries. One runs in about 2 seconds. The other takes upwards
> of 2 minutes. I have a temp table that is created with 2 columns. This
> table is joined with the larger database of call detail records.
> However, these 2 queries are handled very differently.

This is not a bug.

You might have better results if you ANALYZE the temp table before
trying to join it with the bigger table.  Otherwise, post EXPLAIN
ANALYZE (not just EXPLAIN) results in pgsql-performance, and perhaps
someone can help you.

			regards, tom lane

In response to

pgsql-bugs by date

Next:From: Peter EisentrautDate: 2007-03-01 16:13:58
Subject: Re: BUG #3092: character varying and integer cannot be matched
Previous:From: Rob SchallDate: 2007-03-01 14:40:40
Subject: Problem with an Identical Query

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group