select open change scope Open full search

PG.CENTER connects PostgreSQL documentation, reference, and ecosystem knowledge. Maintained by Pigsty.

Extensions / Functions and aggregates

pg_calcpi

Computes digits of pi in PostgreSQL with a PL/pgSQL spigot algorithm.

pgext.cloud · Source code · Documentation · Control file

Overview

Packagepg_calcpi
Version1.0
RepositoryUnspecified
Extension typeSQL only
Requires CREATE EXTENSIONYes
Requires preloadNo
TrustedNo
RelocatableYes
Stars1
Latest commit2021-03-23
Catalogue updated2026-08-30

Related extensions

Requires

plpgsqlPL/pgSQL procedural language

See also

gcdC function that computes the greatest common divisor of an integer array.
numpgsqlArray and numerical computing library for PostgreSQL
cmathC11 math functions exposed to PostgreSQL with C-backed implementations.
graph_componentCompute graph components
complexComplex-number data type for PostgreSQL.
eigenNew array types and linear-algebra functions based on the Eigen numerical template library.
sum_arrayC function that sums PostgreSQL integer and floating-point arrays into float8.
fbsqlClosure-preserving formula-based statistical modeling in SQL