pgmp
pgmp copied to clipboard
PostgreSQL Multiple Precision Arithmetic extension
Submitted for consideration of whether this is something useful to upstream. This shouldn't be merged as-is (no docs or benchmarks yet.) This patch enables *efficient* interconversion between `mpz` and `bytea`,...
Probably should wrap the [MPFR](https://www.mpfr.org/) library rather than [`mpf_t`](https://gmplib.org/manual/Floating_002dpoint-Functions.html#Floating_002dpoint-Functions).
- http://www.postgresql.org/docs/9.1/static/sql-createtype.html - http://gmplib.org/manual/I_002fO-of-Integers.html#index-mpz_005fout_005fraw-443
See [this article](http://pgeoghegan.blogspot.co.uk/2012/08/sorting-improvements-in-postgresql-92.html) and [this commit](http://git.postgresql.org/gitweb/?p=postgresql.git;a=commitdiff;h=c6e3ac11b60ac4a8942ab964252d51c1c0bd8845;hp=d2a662182eac1069ff3874a1db499508a13c6bca). [SQL docs](http://www.postgresql.org/docs/9.2/static/xindex.html#XINDEX-BTREE-SUPPORT-TABLE) here.