Re: Simple indexed IN query takes 40 seconds - Mailing list pgsql-performance

From Andrus
Subject Re: Simple indexed IN query takes 40 seconds
Date
Msg-id FA5481C37B434A5A8514435353F23019@andrusnotebook
Whole thread Raw
In response to Re: Simple indexed IN query takes 40 seconds  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-performance
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.

pgsql-performance by date:

Previous
From: Richard Huxton
Date:
Subject: Re: Oddity with view
Next
From: Tom Lane
Date:
Subject: Re: Oddity with view