Skip site navigation (1) Skip section navigation (2)

Re: Unsigned ints (Help)

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Adriaan Joubert <a(dot)joubert(at)albourne(dot)com>
Cc: Postgresql <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Unsigned ints (Help)
Date: 2001-03-28 16:09:28
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-hackers
Adriaan Joubert <a(dot)joubert(at)albourne(dot)com> writes:
> Uggh, this needs some help. I've got the problem that I can insert a
> value bigger than MAXINT into an int8 column, but when I try to do the
> same for a uint4 column, the parser coerces it into an int4, as in:

See past discussions about appropriate handling of unlabeled numeric
constants.  This is a tricky area that needs a thoroughgoing rethink.
If you go into it with only "fix uint4" in mind then you will almost
certainly make things worse.

			regards, tom lane

In response to


pgsql-hackers by date

Next:From: Thomas SwanDate: 2001-03-28 16:55:35
Subject: Re: Feature Request: ALTER FUNCTION (or something like that)
Previous:From: Thomas LockhartDate: 2001-03-28 15:53:08
Subject: Re: Unsigned ints (Help)

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group