> the join column, lsid, is a poor choice for a join column as it is a
> long varchar value (avg length 101 characters) that us only gets
> unique way out on the right hand side.
Would a join on subtring on the 'way out on the right hand side' (did you
mean 'rightmost characters' or 'only when we take almost all the 101
characters'?) together with a function based index help?
"The information in this e-mail and any attachment is intended only for
the person to whom it is addressed and may contain confidential and/or
privileged material. If you have received this e-mail in error, kindly
contact the sender and destroy all copies of the original communication.
IBS makes no warranty, express or implied, nor guarantees the accuracy,
adequacy or completeness of the information contained in this email or any
attachment and is not liable for any errors, defects, omissions, viruses
or for resultant loss or damage, if any, direct or indirect."
In response to
pgsql-performance by date
|Next:||From: Tom Lane||Date: 2010-07-28 04:39:27|
|Subject: Re: Questions on query planner, join types, and work_mem |
|Previous:||From: Alvaro Herrera||Date: 2010-07-28 04:01:51|
|Subject: Re: Questions on query planner, join types, and work_mem|