> select -(32768::smallint)>> which is why you're getting "smallint out of range." This should work:>> select (-32768)::smallintExact. Thank you for the answer.But really conter-intuitive.
Cordialement,Jean-Gérard Pailloncy