Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 77B3547653B for ; Wed, 4 Dec 2002 08:40:41 -0500 (EST) Received: from localdomain (m1.xenion.de [62.8.212.158]) by postgresql.org (Postfix) with ESMTP id 7CAEA475EE1 for ; Wed, 4 Dec 2002 08:37:17 -0500 (EST) Received: from usco.de [195.206.128.88] by localdomain with Novonyx SMTP Server $Revision: 2.75.1.9 $; Wed, 04 Dec 2002 14:38:25 +0100 (ECTD) Message-ID: <3DEE054A.A157C1B6@usco.de> Date: Wed, 04 Dec 2002 14:38:18 +0100 From: Egon Reetz X-Mailer: Mozilla 4.8 [en] (WinNT; U) X-Accept-Language: en MIME-Version: 1.0 To: raja kumar thatte Cc: pgsql-admin@postgresql.org Subject: Re: how to alter sequence. References: <20021204122900.96540.qmail@web20608.mail.yahoo.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200212/30 X-Sequence-Number: 6525 Drop the sequence and recreate with a min. value greater your last value and the new max. value. Egon raja kumar thatte wrote: > Hai friends, > I have a sequence called raj_seq with max value 3000. > I have a table, with one field haveing > nextvalu('raj_seq') as default value.; > now i wanted to increase the max value of the raj_seq > to 9999999. > How to do this change? > If i drop and recreate the raj_seq, then i have to > recreate the table and all triggers working on that > table.But it is not an acceptable solution. > So with out droping raj_seq , how do I solve this > problem. > Thanks in advance. > have a nice time. > raja > > __________________________________________________ > Do you Yahoo!? > Yahoo! Mail Plus - Powerful. Affordable. Sign up now. > http://mailplus.yahoo.com > > ---------------------------(end of broadcast)--------------------------- > TIP 6: Have you searched our list archives? > > http://archives.postgresql.org