Re: sequence question - Mailing list pgsql-general

From Stephan Szabo
Subject Re: sequence question
Date
Msg-id 20030109203451.K656-100000@megazone23.bigpanda.com
Whole thread Raw
In response to sequence question  ("Williams, Travis L, NPONS" <tlw@att.com>)
List pgsql-general
On Thu, 9 Jan 2003, Williams, Travis L, NPONS wrote:

> Can you manually update the last_value in a sequence?  I moved some
> data around and manually put in some of the sequence numbers.. I fixed
> the problem.. but was wondering for furture reference.

You can use setval() on the sequence to change the next value generated.



pgsql-general by date:

Previous
From: "Williams, Travis L, NPONS"
Date:
Subject: sequence question
Next
From: Jean-Christian Imbeault
Date:
Subject: PostgreSQL/PHP: transactions: how-to abstract out?