Re: Dumb question about serial's upper limit

Поиск
Список
Период
Сортировка
От Michael Glaesemann
Тема Re: Dumb question about serial's upper limit
Дата
Msg-id 592FF5A8-F42D-47B6-BB1C-978DF01A40F6@myrealbox.com
обсуждение исходный текст
Ответ на Re: Dumb question about serial's upper limit  (CSN <cool_screen_name90001@yahoo.com>)
Список pgsql-general
On Oct 11, 2005, at 14:04 , CSN wrote:

> I was thinking about the types in the C code behind
> PostgreSQL, rather than types in PG itself. Been a
> long time since I coded in C but I thought it had
> unsigned ints and maybe data types could be mapped as
> so (pardon my ignorance about C/PG's inner workings):
>
> PG int => C signed int
> PG serial => C unsigned int

Serial is not a datatype per se; it's essentially a macro to create a
sequence (foo_seq) and an INT column that has a default value of
nextval('foo_seq').

Michael Glaesemann
grzm myrealbox com




В списке pgsql-general по дате отправления:

Предыдущее
От: Gregory Wood
Дата:
Сообщение: Re: Oracle buys Innobase
Следующее
От: Sim Zacks
Дата:
Сообщение: Re: strange error