X-Original-To: pgsql-admin@postgresql.org Received: from spampd.localdomain (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id E017B4758E6 for ; Wed, 30 Apr 2003 09:38:52 -0400 (EDT) Received: from strategicnetwork.org (66-11-6-49.orf.contbb.net [66.11.6.49]) by postgresql.org (Postfix) with ESMTP id 48445475458 for ; Wed, 30 Apr 2003 09:38:50 -0400 (EDT) Received: (qmail 1982 invoked from network); 30 Apr 2003 13:38:51 -0000 Received: from unknown (HELO long) (192.168.0.246) by strategicnetwork.org with SMTP; 30 Apr 2003 13:38:51 -0000 From: "Justin Long" To: Subject: Impact of loss of unique SERIAL? Date: Wed, 30 Apr 2003 09:33:03 -0400 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 In-Reply-To: <200304300934.32897.mallah@trade-india.com> X-Spam-Status: No, hits=-14.7 required=5.0 tests=BAYES_10,IN_REP_TO,MSGID_GOOD_EXCHANGE autolearn=ham version=2.50 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) X-Archive-Number: 200304/397 X-Sequence-Number: 8552 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