From: Hacksaw <hacksaw@hacksaw.org>
To: Andrew Sullivan <andrew@libertyrms.info>
Cc: pgsql-admin@postgresql.org
Subject: Re: Impact of loss of unique SERIAL?
Date: Thu, 01 May 2003 19:35:15 -0400
Message-ID: <200305012335.h41NZF2J022516@habitrail.home.fools-errant.com> (raw)
In-Reply-To: <20030430142132.GB6618@libertyrms.info>
> From: Andrew Sullivan <andrew@libertyrms.info>
> I don't actually recall the argument for removing the automatic
> unique index. But it's easy enough at the time of creation, since
> you could specify a UNIQUE constraint on the column anyway.
Well, I've no idea what the PostgreSQL's particular argument might have been,
but too many indices typically means slower lookups. You want the indices to
be created based on the fields you will most often mention in WHERE statements.
A unique serial number is always useful, but might not be looked at unless the
the final output is a surprising number of records, like two, where one is
expected. No point in indexing it then.
--
Music is a quality, organised in sound and in time.
http://www.hacksaw.org -- http://www.privatecircus.com -- KB1FVD
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: hacksaw@hacksaw.org, andrew@libertyrms.info
Subject: Re: Impact of loss of unique SERIAL?
In-Reply-To: <200305012335.h41NZF2J022516@habitrail.home.fools-errant.com>
References: <20030430142132.GB6618@libertyrms.info> <200305012335.h41NZF2J022516@habitrail.home.fools-errant.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