On Tue, Feb 16, 2016 at 7:27 PM, Feng Tian <[email protected]> wrote: > I run into the following. Seems this is a bug for -32768, which should be > a valid smallint value.
This isn't a bug. You see the error only due to operator precedence: postgres=# select (-32768)::int2; int2 ───────── -32,768 (1 row) -- Peter Geoghegan -- Sent via pgsql-hackers mailing list ([email protected]) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers
