pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jim C. Nasby <jim@nasby.net>
To: csajl <csajl@yahoo.com>
Cc: Stephan Szabo <sszabo@megazone23.bigpanda.com>
Cc: josh@agliodbs.com
Cc: pgsql-performance@postgresql.org
Subject: Re: [repost] partial index / funxtional idx or bad sql?
Date: Tue, 13 May 2003 05:58:17 -0500
Message-ID: <20030513055817.N66185@flake.decibel.org> (raw)
In-Reply-To: <20030513040338.3925.qmail@web40305.mail.yahoo.com>
References: <20030512204533.I20042-100000@megazone23.bigpanda.com>
	<20030513040338.3925.qmail@web40305.mail.yahoo.com>

On Mon, May 12, 2003 at 09:03:38PM -0700, csajl wrote:
> 
> wow.
> 
> that did it.  so much for my knowing SQL...
> > 
> > How about something like:
> > 
> > select c.class_id, c.areacode, c.title from
> >  classifieds c,
> >  (select distinct areacode from cm_areacode where site_id='10') a
> >  where c.class_cat_id='1' and c.areacode=a.areacode;
> > 

Wow, I'll have to keep that in mind. Shouldn't the optimizer be able to
handle that? Could this get added to the TODO?
-- 
Jim C. Nasby (aka Decibel!)                    jim@nasby.net
Member: Triangle Fraternity, Sports Car Club of America
Give your computer some brain candy! www.distributed.net Team #1828

Windows: "Where do you want to go today?"
Linux: "Where do you want to go tomorrow?"
FreeBSD: "Are you guys coming, or what?"




view thread (10+ messages)  latest in thread

Message-ID: <20030513055817.N66185@flake.decibel.org>
Permalink:  ../20030513055817.N66185@flake.decibel.org/
Also on:    postgresql.org/message-id/20030513055817.N66185@flake.decibel.org

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-performance@postgresql.org
  Cc: jim@nasby.net, csajl@yahoo.com, sszabo@megazone23.bigpanda.com, josh@agliodbs.com
  Subject: Re: [repost] partial index / funxtional idx or bad sql?
  In-Reply-To: <20030513055817.N66185@flake.decibel.org>
  References: <20030512204533.I20042-100000@megazone23.bigpanda.com> <20030513040338.3925.qmail@web40305.mail.yahoo.com> <20030513055817.N66185@flake.decibel.org>

* 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