Proposal for internal Numeric to Uint64 conversion function.

From: Amul Sul <sulamul(at)gmail(dot)com>
To: PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Proposal for internal Numeric to Uint64 conversion function.
Date: 2022-02-16 05:00:34
Message-ID: CAAJ_b95jLg45xJ8336YN9-69oHy+6c8ObhYs9PDazuS4fPZcGw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

Currently, numeric_pg_lsn is the only one that accepts the Numeric
value and converts to uint64 and that is the reason all the type
conversion code is embedded into it.

I think it would be helpful if that numeric-to-uint64 conversion code
is extracted as a separate function so that any other SQL function
like numeric_pg_lsn which wants to accept values up to the uint64
range can use that function.

Thoughts? Comments?

--
Regards,
Amul Sul
EDB: http://www.enterprisedb.com

Attachment Content-Type Size
0001-Refactor-numeric_pg_lsn.patch application/x-patch 2.8 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Andres Freund 2022-02-16 05:06:45 Re: USE_BARRIER_SMGRRELEASE on Linux?
Previous Message Andres Freund 2022-02-16 04:59:43 Re: USE_BARRIER_SMGRRELEASE on Linux?