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

Re: Issues with generate_series using integer boundaries

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Thom Brown <thom(at)linux(dot)com>
Cc: PGSQL Mailing List <pgsql-general(at)postgresql(dot)org>
Subject: Re: Issues with generate_series using integer boundaries
Date: 2011-02-01 00:36:42
Message-ID: 11684.1296520602@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-generalpgsql-hackers
Thom Brown <thom(at)linux(dot)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

In response to

Responses

pgsql-hackers by date

Next:From: Thom BrownDate: 2011-02-01 00:41:25
Subject: Re: Issues with generate_series using integer boundaries
Previous:From: Tom LaneDate: 2011-02-01 00:33:32
Subject: Re: Error code for "terminating connection due to conflict with recovery"

pgsql-general by date

Next:From: Thom BrownDate: 2011-02-01 00:41:25
Subject: Re: Issues with generate_series using integer boundaries
Previous:From: Thom BrownDate: 2011-02-01 00:33:27
Subject: Re: Issues with generate_series using integer boundaries

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