Re: Unique constraint violation on serial column

From: Alvaro Herrera <alvherre(at)dcc(dot)uchile(dot)cl>
To: Bill Chandler <billybobc1210(at)yahoo(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Unique constraint violation on serial column
Date: 2005-04-12 15:56:01
Message-ID: 20050412155601.GH17283@dcc.uchile.cl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Tue, Apr 12, 2005 at 08:48:15AM -0700, Bill Chandler wrote:

> How does one find out the current sequence value? Is
> there a way to change it?

Using the function setval() you can change it. SELECT * from
sequencename to find out.

--
Alvaro Herrera (<alvherre[(at)]dcc(dot)uchile(dot)cl>)
"Si quieres ser creativo, aprende el arte de perder el tiempo"

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Bill Chandler 2005-04-12 15:58:41 Re: Unique constraint violation on serial column
Previous Message Bill Chandler 2005-04-12 15:48:15 Re: Unique constraint violation on serial column