Re: Index on a COALESCE function - Mailing list pgsql-admin

From Richard Broersma Jr
Subject Re: Index on a COALESCE function
Date
Msg-id 886237.78443.qm@web31813.mail.mud.yahoo.com
Whole thread Raw
In response to Index on a COALESCE function  ("Mark Steben" <msteben@autorevenue.com>)
List pgsql-admin
--- Mark Steben <msteben@autorevenue.com> wrote:

>  select 45198705,false,id,next_avail_senddate(id,date(send_date)) from
>  (select
> id,timeclause_combine(date(estmileage_timeclause(service_date,mileage,last_s
> ervice_date,last_mileage,
>    date_of_purchase,year_purchased,10750,cid,serindex_date,id)),
>    date(date_larger(date(coalesce(date_of_purchase,
> '1900-01-01')+timespan('45 days')),
>    date(service_date+timespan('44 days')))),
>    date(null),date(create_date),9,false) as send_date,last_send

IIUC, indexs are only used in JOINS and WHERE conditions.  I don't see either of those in your
query.

Regards,
Richard Broersma Jr.

pgsql-admin by date:

Previous
From: "Mark Steben"
Date:
Subject: Index on a COALESCE function
Next
From: Andrew Sullivan
Date:
Subject: Re: cache problem (v2)