X-Original-To: pgsql-novice@postgresql.org Received: from pop131.ocn.ne.jp (pop131.ocn.ne.jp [210.232.239.48]) by postgresql.org (Postfix) with ESMTP id E7FA8476241 for ; Wed, 12 Mar 2003 02:31:41 -0500 (EST) Received: from Thomas (sonic.insight-system.co.jp [219.163.161.170]) by pop131.ocn.ne.jp (OCN) with ESMTP id QAA10818 for ; Wed, 12 Mar 2003 16:31:40 +0900 (JST) From: "BERG Thomas" To: Subject: Re: SERIAL does not ROLLBACK Date: Wed, 12 Mar 2003 16:31:40 +0900 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Importance: Normal In-Reply-To: <20030312072122.12363.qmail@web41112.mail.yahoo.com> X-Archive-Number: 200303/82 X-Sequence-Number: 6395 I believe this is deliberate on the part of the postgresql programmers. If serial numbers could be rolled back, you'd have to block any other transactions that wanted a new serial number until the first transaction had committed. I don't know how to get around this, but I'd think pretty carefully before I decided to, unless I were an a single-user or extremely few-user scenario. Berg -----Original Message----- From: pgsql-novice-owner@postgresql.org [mailto:pgsql-novice-owner@postgresql.org]On Behalf Of Muhammad Shariq Muzaffar Sent: Wednesday, March 12, 2003 4:21 PM To: pgsql-sql@postgresql.org Cc: pgsql-novice@postgresql.org Subject: [NOVICE] SERIAL does not ROLLBACK hi i have a table named 'mytable' with a column of type serial. After inserting tuples in a transaction, when i rollback the transaction the serial number does not come back to its original value and next time when i insert the data, it start with the incremented value. WHY?? how can i make it to come back to its orignial value in case of rollback. thanx in advance... __________________________________________________ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com ---------------------------(end of broadcast)--------------------------- TIP 4: Don't 'kill -9' the postmaster