X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id E9166D1B897 for ; Thu, 25 Sep 2003 07:45:10 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 73926-10 for ; Thu, 25 Sep 2003 04:44:41 -0300 (ADT) Received: from anchor-post-30.mail.demon.net (anchor-post-30.mail.demon.net [194.217.242.88]) by svr1.postgresql.org (Postfix) with ESMTP id 2C99AD1B561 for ; Thu, 25 Sep 2003 04:44:39 -0300 (ADT) Received: from lfix.demon.co.uk ([80.177.205.209] helo=cerberus.lfix.co.uk) by anchor-post-30.mail.demon.net with esmtp (Exim 3.35 #1) id 1A2Qno-000I04-0U; Thu, 25 Sep 2003 08:44:40 +0100 Received: from linda.lfix.co.uk ([192.168.1.1]) by cerberus.lfix.co.uk with esmtp (Exim 4.22) id 1A2Qnb-0005jw-FL; Thu, 25 Sep 2003 08:44:27 +0100 Subject: Re: Sequenties in pgSQL 7.3.x From: Oliver Elphick To: =?iso-8859-2?Q?Przemys=B3aw_S=B3upkowski?= Cc: Lista dyskusyjna pgsql-sql In-Reply-To: <005601c3832f$61fbcf60$930f10ac@win.coig.com> References: <005601c3832f$61fbcf60$930f10ac@win.coig.com> Content-Type: text/plain; charset=iso-8859-2 Organization: LFIX Limited Message-Id: <1064475904.6609.385.camel@linda.lfix.co.uk> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.4 Date: Thu, 25 Sep 2003 08:45:04 +0100 Content-Transfer-Encoding: quoted-printable X-LFIX-MailScanner: Found to be clean X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200309/299 X-Sequence-Number: 15277 On Thu, 2003-09-25 at 07:36, Przemys=B3aw S=B3upkowski wrote: > Hi > I am using postgresql 7.3.x. I am upgrating a database PostgreSQL.=20 > The main problem is how to change field last value in sequencde which > exists in database. > I created script to read this field and then I'm drop the table, do > modification and i'm must change this value to another value. > But DBMS returns me message like that > ERROR: You can't change sequence relation seq_id_seq > How to do this Use the setval() function? --=20 Oliver Elphick Oliver.Elphick@lfix.co.uk Isle of Wight, UK http://www.lfix.co.uk/oliver GPG: 1024D/3E1D0C1C: CA12 09E0 E8D5 8870 5839 932A 614D 4C34 3E1D 0C1C =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D "Who shall separate us from the love of Christ? shall=20 tribulation, or distress, or persecution, or famine,=20 or nakedness, or peril, or sword?...But in all these=20 things we overwhelmingly conquer through Him who loved us." Romans 8:35,37=20