Re: query plan with index having a btrim is different for strings of different length

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Richard Yen <dba(at)richyen(dot)com>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: query plan with index having a btrim is different for strings of different length
Date: 2008-12-10 20:04:54
Message-ID: 6449.1228939494@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

BTW, if your queries typically constrain both lastname and firstname,
it'd likely be worthwhile to make a 2-column index on
lower(btrim(x_lastname)), lower(btrim(x_firstname))

regards, tom lane

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message David Wilson 2008-12-10 21:37:27 Re: Experience with HP Smart Array P400 and SATA drives?
Previous Message Scott Marlowe 2008-12-10 19:41:37 Re: Experience with HP Smart Array P400 and SATA drives?