Proposal for internal Numeric to Uint64 conversion function. - Mailing list pgsql-hackers

From Amul Sul
Subject Proposal for internal Numeric to Uint64 conversion function.
Date
Msg-id CAAJ_b95jLg45xJ8336YN9-69oHy+6c8ObhYs9PDazuS4fPZcGw@mail.gmail.com
Whole thread Raw
Responses Re: Proposal for internal Numeric to Uint64 conversion function.  (Peter Eisentraut <peter.eisentraut@enterprisedb.com>)
List 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

pgsql-hackers by date:

Previous
From: Andres Freund
Date:
Subject: Re: USE_BARRIER_SMGRRELEASE on Linux?
Next
From: Andres Freund
Date:
Subject: Re: USE_BARRIER_SMGRRELEASE on Linux?