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

Re: Optimising "in" queries

From: Russell Smith <mr-russ(at)pws(dot)com(dot)au>
To: Michael Glaesemann <grzm(at)seespotcode(dot)net>
Cc: Stephen Davies <scldad(at)sdc(dot)com(dot)au>, pgsql-performance(at)postgresql(dot)org
Subject: Re: Optimising "in" queries
Date: 2007-08-23 07:42:28
Message-ID: 46CD3A64.9050302@pws.com.au (view raw or flat)
Thread:
Lists: pgsql-performance
Russell Smith wrote:
> 
> Filter: (sensor_id = ANY ('{1137,1138,1139,1140}'::integer[]))
> 
> I've never seen this plan item except for when array's are involved.  I 
> could be wrong.  I'd like to know how this is generated when you don't 
> have an array.
> 

I have just discovered that PG 8.2 will turn an IN clause into an array 
search instead of an OR list.  Sorry all.

Regards

Russell Smith

In response to

pgsql-performance by date

Next:From: Merlin MoncureDate: 2007-08-23 13:09:00
Subject: asynchronous commit feature
Previous:From: Russell SmithDate: 2007-08-23 07:34:01
Subject: Re: Optimising "in" queries

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