pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: markus brosch <brosch@gmx.de>
To: Rod Taylor <rbt@rbt.ca>
Cc: pgsql-sql@postgresql.org
Subject: Re: max length of sql select statement ?
Date: 09 Jul 2003 17:51:35 +0200
Message-ID: <1057765894.1533.40.camel@sam> (raw)
In-Reply-To: <1057765512.46100.84.camel@jester>
References: <1057592658.881.93.camel@sam>
	<1101.219.65.226.199.1057593454.squirrel@mail.trade-india.com>
	<1057594050.886.104.camel@sam>
	<1057594852.46100.11.camel@jester>
	<1057743944.15655.12.camel@sam>
	<1057757398.46100.63.camel@jester>
	<1057764847.863.34.camel@sam>
	<1057765512.46100.84.camel@jester>

On Wed, 2003-07-09 at 17:45, Rod Taylor wrote:
> > Nobody a better idea? Why is the join of a temporary table (the IN
> > paramters) and the original table so slow? Any tricks here? 
> 
> Did you index and ANALYZE the temporary table?

No!

I have to do this "strange" and "long" statement also a view thousand
times ... so I always have to create the temp table again and again and
if I index the table it costs me more time. 

As far I am relativly new to SQL, I ask you:
Where's the difference between and indexed temp (!!!) table and an
unindexed one? The main table is of course fully indexed ;-)

Cheers, Markus





view thread (14+ messages)  latest in thread

Message-ID: <1057765894.1533.40.camel@sam>
Permalink:  ../1057765894.1533.40.camel@sam/
Also on:    postgresql.org/message-id/1057765894.1533.40.camel@sam

 · 

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: brosch@gmx.de, rbt@rbt.ca
  Subject: Re: max length of sql select statement ?
  In-Reply-To: <1057765894.1533.40.camel@sam>

* 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