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 6DF57D1B57B for ; Thu, 25 Sep 2003 07:24:34 +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 70219-08 for ; Thu, 25 Sep 2003 04:24:25 -0300 (ADT) Received: from serwer.skawsoft.com.pl (serwer.skawsoft.com.pl [213.25.37.66]) by svr1.postgresql.org (Postfix) with ESMTP id 5CA2FD1B55D for ; Thu, 25 Sep 2003 04:24:23 -0300 (ADT) Received: from klaster.net (core-1.citynet.pl [80.48.135.69]) by serwer.skawsoft.com.pl (Postfix) with ESMTP id EE19B2B3D1; Thu, 25 Sep 2003 09:24:10 +0200 (CEST) Message-ID: <3F729819.3010108@klaster.net> Date: Thu, 25 Sep 2003 09:24:09 +0200 From: Tomasz Myrta User-Agent: Mozilla/5.0 (Windows; U; Win 9x 4.90; pl-PL; rv:1.5a) Gecko/20030718 X-Accept-Language: pl, en-us, en MIME-Version: 1.0 To: =?ISO-8859-2?Q?Przemys=B3aw_S=B3upkowski?= Cc: Lista dyskusyjna pgsql-sql Subject: Re: Sequenties in pgSQL 7.3.x References: <005601c3832f$61fbcf60$930f10ac@win.coig.com> In-Reply-To: <005601c3832f$61fbcf60$930f10ac@win.coig.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200309/298 X-Sequence-Number: 15276 > Hi > I am using postgresql 7.3.x. I am upgrating a database PostgreSQL. > 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 Documentation says: 6.11. Sequence-Manipulation Functions select setval('some_sequence',333); Regards, Tomasz Myrta