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

From Peter Eisentraut
Subject Re: Proposal for internal Numeric to Uint64 conversion function.
Date
Msg-id 27eb25b4-aed3-b877-79a4-f940fc72ef6d@enterprisedb.com
Whole thread Raw
In response to Proposal for internal Numeric to Uint64 conversion function.  (Amul Sul <sulamul@gmail.com>)
Responses Re: Proposal for internal Numeric to Uint64 conversion function.  (Amul Sul <sulamul@gmail.com>)
List pgsql-hackers
On 16.02.22 06:00, Amul Sul wrote:
> 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.

There are other functions such as numeric_int8() that work similarly. 
If you are going to refactor, then they should all be treated similarly. 
  I'm not sure if it's going to end up being beneficial.



pgsql-hackers by date:

Previous
From: "osumi.takamichi@fujitsu.com"
Date:
Subject: RE: Optionally automatically disable logical replication subscriptions on error
Next
From: Amit Kapila
Date:
Subject: Re: Fix a comment in worker.c