so it looks to me, like you are trying to use wrong tool for the job. Why not just normalize names to #3 ? -- Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general