Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 357CD476363 for ; Wed, 4 Dec 2002 11:18:12 -0500 (EST) Received: from jester.senspire.com (unknown [216.208.117.7]) by postgresql.org (Postfix) with ESMTP id 5244C47635A for ; Wed, 4 Dec 2002 11:18:11 -0500 (EST) Received: from [127.0.0.1] (localhost [127.0.0.1]) by jester.senspire.com (8.12.6/8.12.6) with ESMTP id gB4GItkD036057; Wed, 4 Dec 2002 11:18:56 -0500 (EST) (envelope-from rbt@rbt.ca) Subject: Re: [ADMIN] how to alter sequence. From: Rod Taylor To: Oliver Elphick Cc: raja kumar thatte , PostgreSQL-development In-Reply-To: <1039010812.11433.75.camel@linda.lfix.co.uk> References: <20021204122900.96540.qmail@web20608.mail.yahoo.com> <1039010812.11433.75.camel@linda.lfix.co.uk> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-HGVIoiHI+dIlL8OUaI6a" Organization: Message-Id: <1039018735.35854.33.camel@jester> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.0 Date: 04 Dec 2002 11:18:55 -0500 X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200212/241 X-Sequence-Number: 32696 --=-HGVIoiHI+dIlL8OUaI6a Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Wed, 2002-12-04 at 09:06, 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. >=20 > 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. >=20 > Hackers: Could this be a TODO item for 7.4? I'm hoping to do that one sooner than later, unless Neil beats me to it. --=20 Rod Taylor PGP Key: http://www.rbt.ca/rbtpub.asc --=-HGVIoiHI+dIlL8OUaI6a Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQA97iru6DETLow6vwwRAvOuAKCCKFT5xNl+qTsDR7JJy9bSahiBaACfdFFr ggwKSD33PaChWsW62uIUzg4= =MMrt -----END PGP SIGNATURE----- --=-HGVIoiHI+dIlL8OUaI6a--