On Fri, Oct 31, 2014 at 03:58:06PM +0100, Filip Rembiałkowski wrote:
> psql.bin (9.3.4, server 9.3.5)
> Type "help" for help.
>
> dev=# select (2^63-1)::INT8;
> ERROR: bigint out of range
>
>
> Does it HAVE to be so?
>
>
> http://en.wikipedia.org/wiki/9223372036854775807
>
> Thanks
> Filip
Yes:
http://www.postgresql.org/docs/9.3/static/datatype.html
Table 8-1:
bigint, aliases int8 - signed eight-byte integer
PostgreSQL does not have an unsigned integer type, since all the
SQL ones are signed.
Regards,
Ken