Re: Issues with generate_series using integer boundaries

Tom Lane <tgl@sss.pgh.pa.us>

From: Tom Lane <tgl@sss.pgh.pa.us>
To: Thom Brown <thom@linux.com>
Cc: PGSQL Mailing List <pgsql-general@postgresql.org>
Date: 2011-02-01T00:36:42Z
Lists: pgsql-hackers
Thom Brown <thom@linux.com> writes:
> Actually, those lower bound errors aren't related to generate_series,
> but I'd still like to know why -2147483648::int4 is out of range.

:: binds tighter than - (and everything else too).  Write
(-2147483648)::int4 instead.

			regards, tom lane