Re: portable DBAPI auto-increment

Поиск
Список
Период
Сортировка
От David Blewett
Тема Re: portable DBAPI auto-increment
Дата
Msg-id BANLkTinvuN-q1UeCYTwMyVKdgE1ByGtM8g@mail.gmail.com
обсуждение исходный текст
Ответ на Re: portable DBAPI auto-increment  (Daniele Varrazzo <daniele.varrazzo@gmail.com>)
Список 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 по дате отправления:

Предыдущее
От: Daniele Varrazzo
Дата:
Сообщение: Re: portable DBAPI auto-increment
Следующее
От: Marko Kreen
Дата:
Сообщение: Re: portable DBAPI auto-increment