pgmp is a
PostgreSQL extension to add the
GMP data types and functions directly into the database.
The extension is currently under active development and the file format is not guaranteed to be stable yet. The target for the first release is to support integers (mpz) and rational (mpq) data types.