Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 5563D475EFB for ; Thu, 5 Dec 2002 07:35:03 -0500 (EST) Received: from rtlocal.trade-india.com (mail-relay.trade-india.com [203.196.129.235]) by postgresql.org (Postfix) with SMTP id 57E70476027 for ; Thu, 5 Dec 2002 07:34:05 -0500 (EST) Received: (qmail 18637 invoked from network); 5 Dec 2002 12:24:56 -0000 Received: from unknown (HELO system67.trade-india-local.com) (192.168.0.67) by infocom-236-129-del.trade-india.com with SMTP; 5 Dec 2002 12:24:56 -0000 From: "Rajesh Kumar Mallah." Organization: Infocom Network Limited. To: Bruce Momjian , Oliver Elphick Subject: Re: how to alter sequence. Date: Thu, 5 Dec 2002 18:08:25 +0530 User-Agent: KMail/1.5 Cc: raja kumar thatte , pgsql-hackers@postgresql.org, pgsql-admin@postgresql.org References: <200212041823.gB4INeQ07044@candle.pha.pa.us> In-Reply-To: <200212041823.gB4INeQ07044@candle.pha.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200212051808.25911.mallah@trade-india.com> X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200212/48 X-Sequence-Number: 6543 Doesn't dropping and recreating the sequence suit the bill ? whats' the major advantage to implement em as a command? At least one thing from which all of us can benifit in PgSQL is replication. I just hope 7.4 give us some sort of master/slave replication. Regds Mallah. On Wednesday 04 December 2002 11:53 pm, 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 -- Rajesh Kumar Mallah, Project Manager (Development) Infocom Network Limited, New Delhi phone: +91(11)6152172 (221) (L) ,9811255597 (M) Visit http://www.trade-india.com , India's Leading B2B eMarketplace.