Re: Mysql to postgres

From: Theo Galanakis <Theo(dot)Galanakis(at)lonelyplanet(dot)com(dot)au>
To: "'Jim C(dot) Nasby'" <decibel(at)decibel(dot)org>
Cc: "'pgsql-admin(at)postgresql(dot)org'" <pgsql-admin(at)postgresql(dot)org>
Subject: Re: Mysql to postgres
Date: 2005-04-11 23:53:23
Message-ID: D1444817B78AB546BF2896C2B70E7F04371FF2@ganesh.au.lpint.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin


Thankyou all for your feedback. Unfortunately, I think I may have to go down
the lower() road of changing the code.

It will be far more time consuming, however there are other columns that are
char,varchar,text etc.

Will definitely keep the citext contribution in mind for another time.

Theo

-----Original Message-----
From: Jim C. Nasby [mailto:decibel(at)decibel(dot)org]
Sent: Tuesday, 12 April 2005 4:57 AM
To: Tom Lane
Cc: Theo Galanakis; pgsql-admin(at)postgresql(dot)org
Subject: Re: [ADMIN] Mysql to postgres

On Mon, Apr 11, 2005 at 03:02:01AM -0400, Tom Lane wrote:
> I think you could probably also do it by building a locale whose
> comparisons are case-insensitive, but I don't know enough about
> locales to be sure.

FWIW, this is how old versions of Sybase handled case insensitivity. Pretty
much every other database I've worked on though, you want to go the
lower()/lcase() route.

citext is interesting; I'll have to look into that for
stats.distributed.net. Another example of how incredibly extensible
PostgreSQL is.
--
Jim C. Nasby, Database Consultant decibel(at)decibel(dot)org
Give your computer some brain candy! www.distributed.net Team #1828

Windows: "Where do you want to go today?"
Linux: "Where do you want to go tomorrow?"
FreeBSD: "Are you guys coming, or what?"

______________________________________________________________________
This email, including attachments, is intended only for the addressee
and may be confidential, privileged and subject to copyright. If you
have received this email in error, please advise the sender and delete
it. If you are not the intended recipient of this email, you must not
use, copy or disclose its content to anyone. You must not copy or
communicate to others content that is confidential or subject to
copyright, unless you have the consent of the content owner.

Browse pgsql-admin by date

  From Date Subject
Next Message Andrei Bintintan 2005-04-12 06:48:17 PostgreSQL replication solution?
Previous Message Thomas F.O'Connell 2005-04-11 22:43:52 Re: Pg_autovacuum script.