Re: [HACKERS] Decimal64 and Decimal128 - Mailing list pgsql-hackers

From Robert Haas
Subject Re: [HACKERS] Decimal64 and Decimal128
Date
Msg-id CA+TgmoaU028vpuO+NJgjz_yEs66YkVqY1kzQ9NcHfgwfa5b_mw@mail.gmail.com
Whole thread Raw
In response to Re: [HACKERS] Decimal64 and Decimal128  (Peter Geoghegan <pg@bowt.ie>)
Responses Re: [HACKERS] Decimal64 and Decimal128
List pgsql-hackers
On Mon, Jun 19, 2017 at 1:10 PM, Peter Geoghegan <pg@bowt.ie> wrote:
> On Mon, Jun 19, 2017 at 10:00 AM, Robert Haas <robertmhaas@gmail.com> wrote:
>> I've never been very happy with the performance of numeric, so I guess
>> I'm a bit more optimistic about the chances of doing better.  Aside
>> from any computational optimizations, the fact that the datatype could
>> be pass-by-value rather than a varlena might speed things up quite a
>> bit in some cases.
>
> What cases do you have in mind?

I don't have a specific use case in mind.  However, datumCopy() is
sure to be a lot faster when typByVal is true, and see also the
documentation changes in commit
8472bf7a73487b0535c95e299773b882f7523463.

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company



pgsql-hackers by date:

Previous
From: Satyanarayana Narlapuram
Date:
Subject: Re: [HACKERS] Optional message to user when terminating/cancellingbackend
Next
From: Tom Lane
Date:
Subject: Re: [HACKERS] Preliminary results for proposed new pgindent implementation