Re: Dumb question about serial's upper limit

From: Michael Glaesemann <grzm(at)myrealbox(dot)com>
To: CSN <cool_screen_name90001(at)yahoo(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Dumb question about serial's upper limit
Date: 2005-10-11 05:46:37
Message-ID: 592FF5A8-F42D-47B6-BB1C-978DF01A40F6@myrealbox.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Sim Zacks 2005-10-11 05:55:30 Re: strange error
Previous Message Gregory Wood 2005-10-11 05:06:43 Re: Oracle buys Innobase