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

Peripheral Links

Header And Logo

PostgreSQL
| The world's most advanced open source database.

Site Navigation

Search for
  Advanced Search

8.0 collate and index use


  • From: Richard Greenwood <richard(dot)greenwood(at)gmail(dot)com>
  • To: pgsql-hackers-win32(at)postgresql(dot)org
  • Subject: 8.0 collate and index use
  • Date: Tue, 21 Dec 2004 21:25:45 -0700
  • Message-id: <ae9185aa04122120252e3cd01d(at)mail(dot)gmail(dot)com>

My apologies if this has already been discussed ad infinitium...

I built and installed postgresql on windows2000, initdb w/o any
options, and noticed that my indexes were not being used in instance
where they were being used on my linux postgresql installation (same
database, tables, and indexes). The queries where indexes were not
being used on the windows system were LIKE on varchar fileds. On my
linux system:
   pg_controldata 
      LC_COLLATE: C
      LC_TYPE:       C
on my windows system:
   pg_controldata
      LC_COLLATE: English_United States.1252
      LC_CTYPE:     English_United States.1252

I figure the index non-use issue is due to collate and/or ctype, so I:
   initdb --locale=C --lc-collate=C
and indexes are now being used as expected.

Did I address it in the best manner?

Did I overlook anything that should have been obvious? 

Should a new windows postgres user be expected to spot this and address it? 

Thanks for reading.

Best regards,
-- 
Richard Greenwood
richard(dot)greenwood(at)gmail(dot)com
www.greenwoodmap.com



Home | Main Index | Thread Index

Privacy Policy | PostgreSQL Archives hosted by Command Prompt, Inc. | Designed by tinysofa
Copyright © 1996 – 2008 PostgreSQL Global Development Group