Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-performance by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group