Re: portable DBAPI auto-increment - Mailing list psycopg

From David Blewett
Subject Re: portable DBAPI auto-increment
Date
Msg-id BANLkTinvuN-q1UeCYTwMyVKdgE1ByGtM8g@mail.gmail.com
Whole thread Raw
In response to Re: portable DBAPI auto-increment  (Daniele Varrazzo <daniele.varrazzo@gmail.com>)
List psycopg
On Fri, Apr 8, 2011 at 12:42 PM, Daniele Varrazzo
<daniele.varrazzo@gmail.com> wrote:
> On Fri, Apr 8, 2011 at 5:23 PM, Mark Sienkiewicz <sienkiew@stsci.edu> wrote:
>> (For comparison, mysql uses an unsigned 64 bit value for auto increment and
>> chokes when it runs out.  sqlite wraps, but it automatically finds a new key
>> value that is not used.)
>
> Please, read the fine manual: PostgreSQL has a 64 bit bigserial data type too.

In addition, if you absolutely have to have the full 64 bit range, you
can set the starting value of the sequence to -9223372036854775808.

--
Thanks,

David Blewett

psycopg by date:

Previous
From: Daniele Varrazzo
Date:
Subject: Re: portable DBAPI auto-increment
Next
From: Marko Kreen
Date:
Subject: Re: portable DBAPI auto-increment