Re: [repost] partial index / funxtional idx or bad sql?

From: "Jim C(dot) Nasby" <jim(at)nasby(dot)net>
To: csajl <csajl(at)yahoo(dot)com>
Cc: Stephan Szabo <sszabo(at)megazone23(dot)bigpanda(dot)com>, josh(at)agliodbs(dot)com, pgsql-performance(at)postgresql(dot)org
Subject: Re: [repost] partial index / funxtional idx or bad sql?
Date: 2003-05-13 10:58:17
Message-ID: 20030513055817.N66185@flake.decibel.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

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(at)nasby(dot)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?"

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Tom Lane 2003-05-13 14:46:12 Re: [repost] partial index / funxtional idx or bad sql?
Previous Message csajl 2003-05-13 04:03:38 Re: [repost] partial index / funxtional idx or bad sql?