Re: to_hex() for negative inputs - Mailing list pgsql-hackers

From Aleksander Alekseev
Subject Re: to_hex() for negative inputs
Date
Msg-id CAJ7c6TMBcE=SMeUajoEaG=W8HZ6HCRiSQxt9wGb+Mq_nhOB7nQ@mail.gmail.com
Whole thread Raw
In response to Re: to_hex() for negative inputs  (Dean Rasheed <dean.a.rasheed@gmail.com>)
Responses Re: to_hex() for negative inputs
List pgsql-hackers
Hi Dean,

> Of course there is. This is easy to code in C using unsigned ints,
> without resorting to abs() (yes, I'm aware that abs() is undefined for
> INT_MIN).

So in your opinion what is the expected result of to_hex(INT_MIN,
with_sign => true)?

-- 
Best regards,
Aleksander Alekseev



pgsql-hackers by date:

Previous
From: Dean Rasheed
Date:
Subject: Re: to_hex() for negative inputs
Next
From: "Hayato Kuroda (Fujitsu)"
Date:
Subject: RE: [Proposal] Add foreign-server health checks infrastructure