pgDecimal2

This Release
pgDecimal2 2.0.0
Date
Status
Stable
Abstract
decimal64 and decimal128 data types
Description
decimal64/128 using IEEE decimal floating point types
Released By
ftian
License
PostgresSQL
Resources
Special Files
Tags

Extensions

pgDecimal2 2.0.0
8 and 16 bytes IEEE decimal floating point types

README

Contents

pgDecimal
=========

PostgreSQL types based on _Decimal32 and _Decimal64 types.

I wrote this library due performance comparation with PostgreSQL's Numeric type. I would to know how much
big impact has fact, so Numeric is varlena type. This initial implementation is based on basic _Decimal
support, that is not complete (and check of overflow is slower, than could be with better library). This library 
contains some basic arithmetic operators and basic casts.

postgres=# CREATE EXTENSION decimal;
CREATE EXTENSION
postgres=# SELECT 3.14::decimal32;
 decimal32 
───────────
 3.14
(1 row)

postgres=# SELECT 3.14::decimal64;
 decimal64 
───────────
 3.14
(1 row)


Contact: pavel.stehule@gmail.com