From: Justin Long <justinlong@strategicnetwork.org>
To: pgsql-admin@postgresql.org
Subject: Impact of loss of unique SERIAL?
Date: Wed, 30 Apr 2003 09:33:03 -0400
Message-ID: <HOEMINGMOAAKJBIFKNJMOENNKFAA.justinlong@strategicnetwork.org> (raw)
In-Reply-To: <200304300934.32897.mallah@trade-india.com>
I am new to these lists and this message may be off-topic for this list. If
so, please advise and I will repost to one of the others. Here is the
question:
We have been running Postgres 7.2.x for our website, and are considering the
upgrade to 7.3.x. However, in reading through the changelogs I notice that
SERIAL values are no longer unique. Now, I'm no SQL guru, but I'm wondering
what happens if two INSERTs are done at the "same" time (we have multiple
web hosts that access one large database server). Would they result in two
identical values on the SERIAL? We haven't gotten a stupendous amount of
traffic, so I don't know what the odds of this are, but I'm wondering why it
was removed.
I really wanted the "DROP COLUMN" command which is available in 7.3.x, but
it seems I'm going to have to remember some really arcane code to add the
UNIQUE to the sequences. I'm wondering how much reworking of my code I'm
going to have to do to upgrade, and whether I should postpone this.
Evaluating the impact of the SERIAL change would be helpful to me, if anyone
could post a response.
Thanks,
Justin Long
www.strategicnetwork.org
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: justinlong@strategicnetwork.org
Subject: Re: Impact of loss of unique SERIAL?
In-Reply-To: <HOEMINGMOAAKJBIFKNJMOENNKFAA.justinlong@strategicnetwork.org>
References: <200304300934.32897.mallah@trade-india.com> <HOEMINGMOAAKJBIFKNJMOENNKFAA.justinlong@strategicnetwork.org>
* 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