Re: bigserial coloumn

From: Scott Marlowe <smarlowe(at)g2switchworks(dot)com>
To: Surabhi Ahuja <surabhi(dot)ahuja(at)iiitb(dot)ac(dot)in>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: bigserial coloumn
Date: 2005-05-24 13:27:12
Message-ID: 1116941232.31821.249.camel@state.g2switchworks.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Tue, 2005-05-24 at 00:13, Surabhi Ahuja wrote:
> I have a table in which one attribute "id" is a bigserial
>
> when i say
> select setval('table_id_seq', 0);
> it says: values 0 is out of bounds.
> what should i do?

IS that what you really want, or do you just want the first assignment
to be a 1?

If so, then just do setval('table_id_seq', 1, FALSE);

In response to

Browse pgsql-general by date

  From Date Subject
Next Message James Croft 2005-05-24 13:37:51 PostgreSQL release schedule
Previous Message Jerome Macaranas 2005-05-24 12:19:13 Re: Need input on postgres used for phpBB