Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 93E12475F86 for ; Thu, 5 Dec 2002 00:09:19 -0500 (EST) Received: from web20603.mail.yahoo.com (web20603.mail.yahoo.com [216.136.226.161]) by postgresql.org (Postfix) with SMTP id B0E054759AF for ; Thu, 5 Dec 2002 00:09:10 -0500 (EST) Message-ID: <20021205050915.70271.qmail@web20603.mail.yahoo.com> Received: from [219.65.131.105] by web20603.mail.yahoo.com via HTTP; Wed, 04 Dec 2002 21:09:15 PST Date: Wed, 4 Dec 2002 21:09:15 -0800 (PST) From: raja kumar thatte Subject: Re: how to alter sequence. To: Bruce Momjian , Oliver Elphick Cc: raja kumar thatte , pgsql-hackers@postgresql.org, pgsql-admin@postgresql.org In-Reply-To: <200212041823.gB4INeQ07044@candle.pha.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200212/46 X-Sequence-Number: 6541 Thanks everybody. --- Bruce Momjian wrote: > Oliver Elphick wrote: > > On Wed, 2002-12-04 at 12:29, raja kumar thatte > wrote: > > > Hai friends, > > > I have a sequence called raj_seq with max value > 3000. > > ... > > > 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. > > > > Unfortunately there doesn't seem to be any easy > way to do this. There > > is no ALTER SEQUENCE command and you can't use > UPDATE on a sequence. > > Gee, I thought they could just update the sequence > table, but I see: > > test=> update yy set max_value = 100; > ERROR: You can't change sequence relation yy > > > Hackers: Could this be a TODO item for 7.4? > > Added to TODO: > > * Add ALTER SEQUENCE to modify > min/max/increment/cache/cycle values > > -- > Bruce Momjian | > http://candle.pha.pa.us > pgman@candle.pha.pa.us | (610) > 359-1001 > + If your life is a hard drive, | 13 Roberts > Road > + Christ can be your backup. | Newtown > Square, Pennsylvania 19073 > > ---------------------------(end of > broadcast)--------------------------- > TIP 6: Have you searched our list archives? > > http://archives.postgresql.org __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com