financial
Financial aggregate functions
Repository
intgr/pg_financial
https://github.com/intgr/pg_financial
Source
pg_financial-1.0.1.tar.gz
pg_financial-1.0.1.tar.gz
Overview
| Package | Version | Category | License | Language |
|---|---|---|---|---|
pg_financial | 1.0.1 | FUNC | PostgreSQL | C |
| ID | Extension | Bin | Lib | Load | Create | Trust | Reloc | Schema |
|---|---|---|---|---|---|---|---|---|
| 4840 | financial | No | Yes | No | Yes | No | Yes | - |
| Related | currency pg_accumulator omni_ledger |
|---|
Version
| Type | Repo | Version | PG Ver | Package | Deps |
|---|---|---|---|---|---|
| EXT | PIGSTY | 1.0.1 | 1817161514 | pg_financial | - |
| RPM | PIGSTY | 1.0.1 | 1817161514 | pg_financial_$v | - |
| DEB | PIGSTY | 1.0.1 | 1817161514 | postgresql-$v-pg-financial | - |
Build
You can build the RPM / DEB packages for pg_financial using pig build:
Install
You can install pg_financial directly. First, make sure the PGDG and PIGSTY repositories are added and enabled:
Install the extension using pig or apt/yum/dnf:
Install
pig
dnf
apt
Create Extension:
Usage
Provides the XIRR (Irregular Internal Rate of Return) aggregate function, similar to XIRR in spreadsheet programs.
Functions
| Function | Description |
|---|---|
xirr(amount float8, date timestamptz [, guess float8] ORDER BY date) | Compute Irregular Internal Rate of Return |
Examples
Returns NULL when Newton’s method fails to converge. Providing a better guess may help in some cases.
Was this page helpful?
Thanks—your feedback helps us improve this page.
What got in the way? (optional)