From: Aaron Bono <postgresql@aranya.com>
To: Manlio Perillo <manlio_perillo@libero.it>
Cc: Michael Glaesemann <grzm@seespotcode.net>
Cc: pgsql-sql@postgresql.org
Subject: Re: primary keys as TEXT
Date: Mon, 31 Jul 2006 14:34:49 -0500
Message-ID: <bf05e51c0607311234na9fd236mae1374db82a80b3@mail.gmail.com> (raw)
In-Reply-To: <44CDC607.6080006@libero.it>
References: <44C9CCC8.8020304@libero.it>
<6ACD839C-D68A-4BD1-804F-B9DEACFC2ED1@seespotcode.net>
<44CA6E29.4000201@libero.it>
<bf05e51c0607301328n112e57bfxf0d6e7e7dada2b7d@mail.gmail.com>
<44CDC607.6080006@libero.it>
On 7/31/06, Manlio Perillo <manlio_perillo@libero.it> wrote:
>
>
> Because serial ids are only surrogate keys.
> My tables have well definited primary keys, the only problem is that
> they are of type TEXT (and spawn up to 3 columns).
>
> My concern is: how bad can be performance?
My guess is that the performance difference is not going to be noticable
unless you are dealing with huge amounts of data and even then may account
for such a small hit that there will be other issues that are more pressing
like writing better queries, creating a data warehouse or adding proper
indexes and keeping the indexes well maintained.
Anyone care to disagree?
==================================================================
Aaron Bono
Aranya Software Technologies, Inc.
http://www.aranya.com
==================================================================
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: postgresql@aranya.com, manlio_perillo@libero.it, grzm@seespotcode.net
Subject: Re: primary keys as TEXT
In-Reply-To: <bf05e51c0607311234na9fd236mae1374db82a80b3@mail.gmail.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