anon_func
differential-privacy · Differential-privacy aggregate wrappers for PostgreSQL.
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 102075 | anon_func | differential-privacy | 1.0.0 | SEC | Apache-2.0 | C++ |
PostgreSQL · 12
Usage
Sources:
- cc/postgres/anon_func.control
- cc/postgres/README.md
- cc/postgres/anon_func–1.0.0.sql
- cc/postgres/install_extension.sh
anon_func exposes anonymous count, sum, mean, variance and related aggregates from Google differential-privacy. The extension SQL version is 1.0.0; it is distinct from the repository-wide library release number.
Core Workflow
Operational Boundaries
The official setup targets PostgreSQL 12 and requires the compiled C++ library; no wider compatibility is asserted here. Installation is privileged and no preload is specified. Epsilon and optional bounds are literal aggregate parameters. Each input entry is assumed to belong to a distinct user, so callers must bound contributions before aggregation. Empty groups return NULL and are explicitly not differentially private in this implementation. Repeated queries consume privacy budget; these wrappers do not by themselves establish an end-to-end privacy policy.