Re: Sequenties in pgSQL 7.3.x

From: Oliver Elphick <olly(at)lfix(dot)co(dot)uk>
To: Przemysław Słupkowski <przemyslaw(dot)slupkowski(at)euro(dot)coig(dot)pl>
Cc: Lista dyskusyjna pgsql-sql <pgsql-sql(at)postgresql(dot)org>
Subject: Re: Sequenties in pgSQL 7.3.x
Date: 2003-09-25 07:45:04
Message-ID: 1064475904.6609.385.camel@linda.lfix.co.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

On Thu, 2003-09-25 at 07:36, Przemysław Słupkowski wrote:
> 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

Use the setval() function?

--
Oliver Elphick Oliver(dot)Elphick(at)lfix(dot)co(dot)uk
Isle of Wight, UK http://www.lfix.co.uk/oliver
GPG: 1024D/3E1D0C1C: CA12 09E0 E8D5 8870 5839 932A 614D 4C34 3E1D 0C1C
========================================
"Who shall separate us from the love of Christ? shall
tribulation, or distress, or persecution, or famine,
or nakedness, or peril, or sword?...But in all these
things we overwhelmingly conquer through Him who loved
us." Romans 8:35,37

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Richard Huxton 2003-09-25 07:55:54 Re: Sequenties in pgSQL 7.3.x
Previous Message Tomasz Myrta 2003-09-25 07:24:09 Re: Sequenties in pgSQL 7.3.x