From: Scott Marlowe <smarlowe@g2switchworks.com>
To: Manlio Perillo <manlio_perillo@libero.it>
Cc: pgsql-sql@postgresql.org
Subject: Re: primary keys as TEXT
Date: Fri, 28 Jul 2006 14:34:34 -0500
Message-ID: <1154115274.31664.132.camel@state.g2switchworks.com> (raw)
In-Reply-To: <44C9CCC8.8020304@libero.it>
References: <44C9CCC8.8020304@libero.it>
On Fri, 2006-07-28 at 03:37, Manlio Perillo wrote:
> Hi.
>
> There can be performancs problems in having primary keys of type TEXT?
> What about having a primary key of 3 columns (all of type TEXT)?
The biggest problem with using text as a primary key or foreign key is
that text types are locale dependent, so that you might get one
behaviour on one server and another behaviour on another, depending on
configuration of the locale and the locale support on that machine.
For instance, if you have a locale that says that E and e are
equivalent, and another locale that says they aren't...
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: smarlowe@g2switchworks.com, manlio_perillo@libero.it
Subject: Re: primary keys as TEXT
In-Reply-To: <1154115274.31664.132.camel@state.g2switchworks.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox