type "serial" and biginteger

From: DFE <mimmopasticcio(at)gmail(dot)com>
To: pgsql-novice(at)postgresql(dot)org
Subject: type "serial" and biginteger
Date: 2011-09-27 10:16:39
Message-ID: CALqvQ1OBYEQLv62ev4M2ACaAjb5V92085Efj5oLzWJ7Hz1xXkA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

Hi all,
I create a table with Primary Key with name "gid" and type SERIAL.
I have a dubt on the SERIAL type: this data type is a INTEGER (int4)
type, but the sequence that is automatically created with pgAdmin has
BIGINTEGER output (MAXVALUE 9223372036854775807).
This fact can cause a numeric overflow during the insert?

Version Postgres 9.0.3.
Thanks in advance,
Domenico.

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Tom Lane 2011-09-27 13:58:19 Re: plperl.so no such file or directory
Previous Message michael lush 2011-09-27 08:52:41 plperl.so no such file or directory