Mage wrote: > teszt=# select keywords_split('AúéöÖÉÁ'); > keywords_split > ---------------- > aúéöÖÉÁ > (1 row) What happens if you add use locale; in your perl function before calling lc ? -- Daniel PostgreSQL-powered mail user agent and storage: http://www.manitou-mail.org ---------------------------(end of broadcast)--------------------------- TIP 9: the planner will ignore your desire to choose an index scan if your joining column's datatypes do not match