Re: to_hex() for negative inputs

From: Aleksander Alekseev <aleksander(at)timescale(dot)com>
To: PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Cc: Dean Rasheed <dean(dot)a(dot)rasheed(at)gmail(dot)com>
Subject: Re: to_hex() for negative inputs
Date: 2023-01-25 10:57:43
Message-ID: CAJ7c6TMBcE=SMeUajoEaG=W8HZ6HCRiSQxt9wGb+Mq_nhOB7nQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Hayato Kuroda (Fujitsu) 2023-01-25 11:07:16 RE: [Proposal] Add foreign-server health checks infrastructure
Previous Message Dean Rasheed 2023-01-25 10:15:51 Re: to_hex() for negative inputs