pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Russell Smith <mr-russ@pws.com.au>
To: Michael Glaesemann <grzm@seespotcode.net>
Cc: Stephen Davies <scldad@sdc.com.au>
Cc: pgsql-performance@postgresql.org
Subject: Re: Optimising "in" queries
Date: Thu, 23 Aug 2007 17:42:28 +1000
Message-ID: <46CD3A64.9050302@pws.com.au> (raw)
In-Reply-To: <46CD3869.90600@pws.com.au>
References: <200708221210.36770.scldad@sdc.com.au>
	<46CC16F3.7060606@pws.com.au>
	<AAF53AEE-B98C-45BD-B80F-8FA528BFB98B@seespotcode.net>
	<46CD3869.90600@pws.com.au>

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



view thread (13+ messages)  latest in thread

Message-ID: <46CD3A64.9050302@pws.com.au>
Permalink:  ../46CD3A64.9050302@pws.com.au/
Also on:    postgresql.org/message-id/46CD3A64.9050302@pws.com.au

 · 

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-performance@postgresql.org
  Cc: mr-russ@pws.com.au, grzm@seespotcode.net, scldad@sdc.com.au
  Subject: Re: Optimising "in" queries
  In-Reply-To: <46CD3A64.9050302@pws.com.au>

* 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