Bug 285705: [PostgreSQL] Index on some text columns on Postgres could use LOWER
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=joel, a=justdave git-svn-id: svn://10.0.0.236/trunk@179618 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
f1f7b33330
commit
fdc37b4f07
@ -217,6 +217,11 @@ sub bz_setup_database {
|
||||
# field, because it can't have index data longer than 2770
|
||||
# characters on that field.
|
||||
$self->bz_drop_index('longdescs', 'longdescs_thetext_idx');
|
||||
|
||||
# PostgreSQL also wants an index for calling LOWER on
|
||||
# login_name, which we do with sql_istrcmp all over the place.
|
||||
$self->bz_add_index('profiles', 'profiles_login_name_lower_idx',
|
||||
{FIELDS => ['LOWER(login_name)'], TYPE => 'UNIQUE'});
|
||||
}
|
||||
|
||||
#####################################################################
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user