pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: d_nardini@btconnect.com
Cc: pgsql-sql@postgresql.org
Subject: Re: intersect performance (PG 7.1.3 vs 7.2)
Date: Fri, 05 Apr 2002 18:50:16 -0500
Message-ID: <11101.1018050616@sss.pgh.pa.us> (raw)
In-Reply-To: <0CBD3E12-48E6-11D6-8010-0030654E696C@btconnect.com>
References: <0CBD3E12-48E6-11D6-8010-0030654E696C@btconnect.com>

d_nardini@btconnect.com writes:
> I'm running the following statement on a (development) Mac OS X (PG 7.2) 
> box and on a (production) RedHat 7.0 (PG 7.1.3) box. On the OS X it's 
> performing very well ... on RH it's VERY SLOW, with CPU utilization 
> hitting 90%+ (on OS X it hardly exceeds 2%).

Hmm.  Nested intersects are actually broken in 7.1.*, cf.
	http://archives.postgresql.org/pgsql-bugs/2001-08/msg00064.php
Do you get the same results from both boxes?

> BTW - replacing 'intersect' 
> with 'union' in the SQL behaves the same.

In that case it might possibly be a different problem.  Do you get the
same EXPLAIN plan on both boxes?

			regards, tom lane



view thread (4+ messages)  latest in thread

Message-ID: <11101.1018050616@sss.pgh.pa.us>
Permalink:  ../11101.1018050616@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/11101.1018050616@sss.pgh.pa.us

 · 

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: tgl@sss.pgh.pa.us, d_nardini@btconnect.com
  Subject: Re: intersect performance (PG 7.1.3 vs 7.2)
  In-Reply-To: <11101.1018050616@sss.pgh.pa.us>

* 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