pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Muhammad Shariq Muzaffar <shariq77@yahoo.com>
To: pgsql-sql@postgresql.org
Cc: pgsql-novice@postgresql.org
Subject: SERIAL does not ROLLBACK
Date: Wed, 12 Mar 2003 07:21:22 +0000 (GMT)
Message-ID: <20030312072122.12363.qmail@web41112.mail.yahoo.com> (raw)

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



view thread (7+ messages)  latest in thread

Message-ID: <20030312072122.12363.qmail@web41112.mail.yahoo.com>
Permalink:  ../20030312072122.12363.qmail@web41112.mail.yahoo.com/
Also on:    postgresql.org/message-id/20030312072122.12363.qmail@web41112.mail.yahoo.com

 · 

reply

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: shariq77@yahoo.com, pgsql-novice@postgresql.org
  Subject: Re: SERIAL does not ROLLBACK
  In-Reply-To: <20030312072122.12363.qmail@web41112.mail.yahoo.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