From: Andrus <kobruleht2@hot.ee>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-performance@postgresql.org
Subject: Re: Simple indexed IN query takes 40 seconds
Date: Mon, 10 Nov 2008 20:23:41 +0200
Message-ID: <FA5481C37B434A5A8514435353F23019@andrusnotebook> (raw)
In-Reply-To: <7709.1226334545@sss.pgh.pa.us>
References: <A46BE82888954AA18E5AA37BC1C0E694@andrusnotebook>
<7709.1226334545@sss.pgh.pa.us>
Tom,
> Using something newer than 8.1 would help.
Thank you.
If
CREATE TEMP TABLE ids ( id int ) ON COMMIT DROP;
is created, ids are added to this table and
ids table is used in inner join insted of IN clause or
IN clause is replaced with
... dokumnr IN ( SELECT id FROM ids ) ...
, will this fix the issue in 8.1.4 ?
Andrus.
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-performance@postgresql.org
Cc: kobruleht2@hot.ee, tgl@sss.pgh.pa.us
Subject: Re: Simple indexed IN query takes 40 seconds
In-Reply-To: <FA5481C37B434A5A8514435353F23019@andrusnotebook>
* 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