Skip to content

documentdb

API surface for DocumentDB for PostgreSQL

documentdb : API surface for DocumentDB for PostgreSQL

Overview

ID Extension Package Version Category License Language
9000 documentdb documentdb 1.0 SIM MIT C
Attribute Has Binary Has Library Need Load Has DDL Relocatable Trusted
--sLd-- No Yes Yes Yes no no
Relationships
Schemas documentdb_api documentdb_api_internal documentdb_api_catalog documentdb_data documentdb_api_v2 documentdb_api_internal_admin documentdb_api_internal_readwrite documentdb_api_internal_readonly documentdb_api_internal_bgworker
Requires documentdb_core pg_cron postgis tsm_system_rows vector
Need By documentdb_distributed documentdb_extended_rum
See Also pgbson jsquery pg_projection mongo_fdw pgjq pg_graphql omni_rest pg_jsonschema pg_net jsonschema
Siblings documentdb_core documentdb_distributed documentdb_extended_rum
DocumentDB 1.0 packages install SQL 1.0-0. PGSTY supports PostgreSQL 16-18; PG15 is excluded due to the libbson allocation alignment failure. The OSS package includes documentdb, documentdb_core and documentdb_extended_rum only. External RUM is a package dependency on PG16/17 only, not PG18.

Packages

Type Repo Version PG Major Compatibility Package Pattern Dependencies
EXT PIGSTY 1.0 18 17 16 15 14 documentdb documentdb_core, pg_cron, postgis, tsm_system_rows, vector
RPM PIGSTY 1.0 18 17 16 15 14 documentdb_$v postgresql$v-contrib, pg_cron_$v, pgvector_$v, rum_$v, postgis36_$v
DEB PIGSTY 1.0 18 17 16 15 14 postgresql-$v-documentdb postgresql-$v-cron, postgresql-$v-pgvector, postgresql-$v-rum, postgresql-$v-postgis-3
Linux / PG PG18 PG17 PG16 PG15 PG14
el8.x86_64 PIGSTY 1.0 PIGSTY 1.0 PIGSTY 1.0 PIGSTY 0.117 N/A
el8.aarch64 PIGSTY 1.0 PIGSTY 1.0 PIGSTY 1.0 PIGSTY 0.117 N/A
el9.x86_64 PIGSTY 1.0 PIGSTY 1.0 PIGSTY 1.0 PIGSTY 0.117 N/A
el9.aarch64 PIGSTY 1.0 PIGSTY 1.0 PIGSTY 1.0 PIGSTY 0.117 N/A
el10.x86_64 PIGSTY 1.0 PIGSTY 1.0 PIGSTY 1.0 PIGSTY 0.117 N/A
el10.aarch64 PIGSTY 1.0 PIGSTY 1.0 PIGSTY 1.0 PIGSTY 0.117 N/A
d12.x86_64 PIGSTY 1.0 PIGSTY 1.0 PIGSTY 1.0 PIGSTY 0.117 N/A
d12.aarch64 PIGSTY 1.0 PIGSTY 1.0 PIGSTY 1.0 PIGSTY 0.117 N/A
d13.x86_64 PIGSTY 1.0 PIGSTY 1.0 PIGSTY 1.0 PGDG 1.0 N/A
d13.aarch64 PIGSTY 1.0 PIGSTY 1.0 PIGSTY 1.0 PGDG 1.0 N/A
u22.x86_64 PIGSTY 1.0 PIGSTY 1.0 PIGSTY 1.0 PIGSTY 0.117 N/A
u22.aarch64 PIGSTY 1.0 PIGSTY 1.0 PIGSTY 1.0 PIGSTY 0.117 N/A
u24.x86_64 PIGSTY 1.0 PIGSTY 1.0 PIGSTY 1.0 PIGSTY 0.117 N/A
u24.aarch64 PIGSTY 1.0 PIGSTY 1.0 PIGSTY 1.0 PIGSTY 0.117 N/A
u26.x86_64 PIGSTY 1.0 PIGSTY 1.0 PIGSTY 1.0 PGDG 1.0 N/A
u26.aarch64 PIGSTY 1.0 PIGSTY 1.0 PIGSTY 1.0 PGDG 1.0 N/A
Package Version OS ORG SIZE File URL
documentdb_18 1.0 el8.x86_64 pigsty 6.0 MiB documentdb_18-1.0-1PGSTY.el8.x86_64.rpm
documentdb_18 1.0 el8.aarch64 pigsty 5.8 MiB documentdb_18-1.0-1PGSTY.el8.aarch64.rpm
documentdb_18 1.0 el9.x86_64 pigsty 5.9 MiB documentdb_18-1.0-1PGSTY.el9.x86_64.rpm
documentdb_18 1.0 el9.aarch64 pigsty 5.7 MiB documentdb_18-1.0-1PGSTY.el9.aarch64.rpm
documentdb_18 1.0 el10.x86_64 pigsty 5.9 MiB documentdb_18-1.0-1PGSTY.el10.x86_64.rpm
documentdb_18 1.0 el10.aarch64 pigsty 5.8 MiB documentdb_18-1.0-1PGSTY.el10.aarch64.rpm
postgresql-18-documentdb 1.0 d12.x86_64 pigsty 5.6 MiB postgresql-18-documentdb_1.0-1PGSTY~bookworm_amd64.deb
postgresql-18-documentdb 1.0 d12.aarch64 pigsty 5.4 MiB postgresql-18-documentdb_1.0-1PGSTY~bookworm_arm64.deb
postgresql-18-documentdb 1.0 d13.x86_64 pigsty 5.6 MiB postgresql-18-documentdb_1.0-1PGSTY~trixie_amd64.deb
postgresql-18-documentdb 1.0 d13.x86_64 pgdg 5.5 MiB postgresql-18-documentdb_1.0~RC1-2.pgdg13+1_amd64.deb
postgresql-18-documentdb 1.0 d13.x86_64 pgdg 5.5 MiB postgresql-18-documentdb_1.0~RC1-1.pgdg13+1_amd64.deb
postgresql-18-documentdb 0.117 d13.x86_64 pgdg 5.4 MiB postgresql-18-documentdb_0.117-0-1.pgdg13+1_amd64.deb
postgresql-18-documentdb 1.0 d13.aarch64 pigsty 5.4 MiB postgresql-18-documentdb_1.0-1PGSTY~trixie_arm64.deb
postgresql-18-documentdb 1.0 d13.aarch64 pgdg 5.3 MiB postgresql-18-documentdb_1.0~RC1-2.pgdg13+1_arm64.deb
postgresql-18-documentdb 1.0 d13.aarch64 pgdg 5.3 MiB postgresql-18-documentdb_1.0~RC1-1.pgdg13+1_arm64.deb
postgresql-18-documentdb 0.117 d13.aarch64 pgdg 5.3 MiB postgresql-18-documentdb_0.117-0-1.pgdg13+1_arm64.deb
postgresql-18-documentdb 1.0 u22.x86_64 pigsty 5.9 MiB postgresql-18-documentdb_1.0-1PGSTY~jammy_amd64.deb
postgresql-18-documentdb 1.0 u22.aarch64 pigsty 5.8 MiB postgresql-18-documentdb_1.0-1PGSTY~jammy_arm64.deb
postgresql-18-documentdb 1.0 u24.x86_64 pigsty 5.8 MiB postgresql-18-documentdb_1.0-1PGSTY~noble_amd64.deb
postgresql-18-documentdb 1.0 u24.aarch64 pigsty 5.7 MiB postgresql-18-documentdb_1.0-1PGSTY~noble_arm64.deb
postgresql-18-documentdb 1.0 u26.x86_64 pigsty 5.8 MiB postgresql-18-documentdb_1.0-1PGSTY~resolute_amd64.deb
postgresql-18-documentdb 1.0 u26.x86_64 pgdg 5.4 MiB postgresql-18-documentdb_1.0~RC1-2.pgdg26.04+1_amd64.deb
postgresql-18-documentdb 1.0 u26.x86_64 pgdg 5.4 MiB postgresql-18-documentdb_1.0~RC1-1.pgdg26.04+1_amd64.deb
postgresql-18-documentdb 0.117 u26.x86_64 pgdg 5.4 MiB postgresql-18-documentdb_0.117-0-1.pgdg26.04+1_amd64.deb
postgresql-18-documentdb 1.0 u26.aarch64 pigsty 5.7 MiB postgresql-18-documentdb_1.0-1PGSTY~resolute_arm64.deb
postgresql-18-documentdb 1.0 u26.aarch64 pgdg 5.2 MiB postgresql-18-documentdb_1.0~RC1-2.pgdg26.04+1_arm64.deb
postgresql-18-documentdb 1.0 u26.aarch64 pgdg 5.2 MiB postgresql-18-documentdb_1.0~RC1-1.pgdg26.04+1_arm64.deb
postgresql-18-documentdb 0.117 u26.aarch64 pgdg 5.2 MiB postgresql-18-documentdb_0.117-0-1.pgdg26.04+1_arm64.deb
Package Version OS ORG SIZE File URL
documentdb_17 1.0 el8.x86_64 pigsty 6.0 MiB documentdb_17-1.0-1PGSTY.el8.x86_64.rpm
documentdb_17 1.0 el8.aarch64 pigsty 5.8 MiB documentdb_17-1.0-1PGSTY.el8.aarch64.rpm
documentdb_17 1.0 el9.x86_64 pigsty 5.9 MiB documentdb_17-1.0-1PGSTY.el9.x86_64.rpm
documentdb_17 1.0 el9.aarch64 pigsty 5.7 MiB documentdb_17-1.0-1PGSTY.el9.aarch64.rpm
documentdb_17 1.0 el10.x86_64 pigsty 5.9 MiB documentdb_17-1.0-1PGSTY.el10.x86_64.rpm
documentdb_17 1.0 el10.aarch64 pigsty 5.8 MiB documentdb_17-1.0-1PGSTY.el10.aarch64.rpm
postgresql-17-documentdb 1.0 d12.x86_64 pigsty 5.6 MiB postgresql-17-documentdb_1.0-1PGSTY~bookworm_amd64.deb
postgresql-17-documentdb 1.0 d12.aarch64 pigsty 5.4 MiB postgresql-17-documentdb_1.0-1PGSTY~bookworm_arm64.deb
postgresql-17-documentdb 1.0 d13.x86_64 pigsty 5.6 MiB postgresql-17-documentdb_1.0-1PGSTY~trixie_amd64.deb
postgresql-17-documentdb 1.0 d13.x86_64 pgdg 5.5 MiB postgresql-17-documentdb_1.0~RC1-2.pgdg13+1_amd64.deb
postgresql-17-documentdb 1.0 d13.x86_64 pgdg 5.5 MiB postgresql-17-documentdb_1.0~RC1-1.pgdg13+1_amd64.deb
postgresql-17-documentdb 0.117 d13.x86_64 pgdg 5.4 MiB postgresql-17-documentdb_0.117-0-1.pgdg13+1_amd64.deb
postgresql-17-documentdb 1.0 d13.aarch64 pigsty 5.4 MiB postgresql-17-documentdb_1.0-1PGSTY~trixie_arm64.deb
postgresql-17-documentdb 1.0 d13.aarch64 pgdg 5.3 MiB postgresql-17-documentdb_1.0~RC1-2.pgdg13+1_arm64.deb
postgresql-17-documentdb 1.0 d13.aarch64 pgdg 5.3 MiB postgresql-17-documentdb_1.0~RC1-1.pgdg13+1_arm64.deb
postgresql-17-documentdb 0.117 d13.aarch64 pgdg 5.3 MiB postgresql-17-documentdb_0.117-0-1.pgdg13+1_arm64.deb
postgresql-17-documentdb 1.0 u22.x86_64 pigsty 6.4 MiB postgresql-17-documentdb_1.0-1PGSTY~jammy_amd64.deb
postgresql-17-documentdb 1.0 u22.aarch64 pigsty 6.2 MiB postgresql-17-documentdb_1.0-1PGSTY~jammy_arm64.deb
postgresql-17-documentdb 1.0 u24.x86_64 pigsty 5.8 MiB postgresql-17-documentdb_1.0-1PGSTY~noble_amd64.deb
postgresql-17-documentdb 1.0 u24.aarch64 pigsty 5.7 MiB postgresql-17-documentdb_1.0-1PGSTY~noble_arm64.deb
postgresql-17-documentdb 1.0 u26.x86_64 pigsty 5.8 MiB postgresql-17-documentdb_1.0-1PGSTY~resolute_amd64.deb
postgresql-17-documentdb 1.0 u26.x86_64 pgdg 5.4 MiB postgresql-17-documentdb_1.0~RC1-2.pgdg26.04+1_amd64.deb
postgresql-17-documentdb 1.0 u26.x86_64 pgdg 5.4 MiB postgresql-17-documentdb_1.0~RC1-1.pgdg26.04+1_amd64.deb
postgresql-17-documentdb 0.117 u26.x86_64 pgdg 5.3 MiB postgresql-17-documentdb_0.117-0-1.pgdg26.04+1_amd64.deb
postgresql-17-documentdb 1.0 u26.aarch64 pigsty 5.7 MiB postgresql-17-documentdb_1.0-1PGSTY~resolute_arm64.deb
postgresql-17-documentdb 1.0 u26.aarch64 pgdg 5.2 MiB postgresql-17-documentdb_1.0~RC1-2.pgdg26.04+1_arm64.deb
postgresql-17-documentdb 1.0 u26.aarch64 pgdg 5.2 MiB postgresql-17-documentdb_1.0~RC1-1.pgdg26.04+1_arm64.deb
postgresql-17-documentdb 0.117 u26.aarch64 pgdg 5.2 MiB postgresql-17-documentdb_0.117-0-1.pgdg26.04+1_arm64.deb
Package Version OS ORG SIZE File URL
documentdb_16 1.0 el8.x86_64 pigsty 6.0 MiB documentdb_16-1.0-1PGSTY.el8.x86_64.rpm
documentdb_16 1.0 el8.aarch64 pigsty 5.8 MiB documentdb_16-1.0-1PGSTY.el8.aarch64.rpm
documentdb_16 1.0 el9.x86_64 pigsty 5.9 MiB documentdb_16-1.0-1PGSTY.el9.x86_64.rpm
documentdb_16 1.0 el9.aarch64 pigsty 5.8 MiB documentdb_16-1.0-1PGSTY.el9.aarch64.rpm
documentdb_16 1.0 el10.x86_64 pigsty 5.9 MiB documentdb_16-1.0-1PGSTY.el10.x86_64.rpm
documentdb_16 1.0 el10.aarch64 pigsty 5.8 MiB documentdb_16-1.0-1PGSTY.el10.aarch64.rpm
postgresql-16-documentdb 1.0 d12.x86_64 pigsty 5.6 MiB postgresql-16-documentdb_1.0-1PGSTY~bookworm_amd64.deb
postgresql-16-documentdb 1.0 d12.aarch64 pigsty 5.4 MiB postgresql-16-documentdb_1.0-1PGSTY~bookworm_arm64.deb
postgresql-16-documentdb 1.0 d13.x86_64 pigsty 5.6 MiB postgresql-16-documentdb_1.0-1PGSTY~trixie_amd64.deb
postgresql-16-documentdb 1.0 d13.x86_64 pgdg 5.5 MiB postgresql-16-documentdb_1.0~RC1-2.pgdg13+1_amd64.deb
postgresql-16-documentdb 1.0 d13.x86_64 pgdg 5.5 MiB postgresql-16-documentdb_1.0~RC1-1.pgdg13+1_amd64.deb
postgresql-16-documentdb 0.117 d13.x86_64 pgdg 5.4 MiB postgresql-16-documentdb_0.117-0-1.pgdg13+1_amd64.deb
postgresql-16-documentdb 1.0 d13.aarch64 pigsty 5.4 MiB postgresql-16-documentdb_1.0-1PGSTY~trixie_arm64.deb
postgresql-16-documentdb 1.0 d13.aarch64 pgdg 5.3 MiB postgresql-16-documentdb_1.0~RC1-2.pgdg13+1_arm64.deb
postgresql-16-documentdb 1.0 d13.aarch64 pgdg 5.3 MiB postgresql-16-documentdb_1.0~RC1-1.pgdg13+1_arm64.deb
postgresql-16-documentdb 0.117 d13.aarch64 pgdg 5.3 MiB postgresql-16-documentdb_0.117-0-1.pgdg13+1_arm64.deb
postgresql-16-documentdb 1.0 u22.x86_64 pigsty 6.4 MiB postgresql-16-documentdb_1.0-1PGSTY~jammy_amd64.deb
postgresql-16-documentdb 1.0 u22.aarch64 pigsty 6.2 MiB postgresql-16-documentdb_1.0-1PGSTY~jammy_arm64.deb
postgresql-16-documentdb 1.0 u24.x86_64 pigsty 5.8 MiB postgresql-16-documentdb_1.0-1PGSTY~noble_amd64.deb
postgresql-16-documentdb 1.0 u24.aarch64 pigsty 5.7 MiB postgresql-16-documentdb_1.0-1PGSTY~noble_arm64.deb
postgresql-16-documentdb 1.0 u26.x86_64 pigsty 5.8 MiB postgresql-16-documentdb_1.0-1PGSTY~resolute_amd64.deb
postgresql-16-documentdb 1.0 u26.x86_64 pgdg 5.4 MiB postgresql-16-documentdb_1.0~RC1-2.pgdg26.04+1_amd64.deb
postgresql-16-documentdb 1.0 u26.x86_64 pgdg 5.4 MiB postgresql-16-documentdb_1.0~RC1-1.pgdg26.04+1_amd64.deb
postgresql-16-documentdb 0.117 u26.x86_64 pgdg 5.3 MiB postgresql-16-documentdb_0.117-0-1.pgdg26.04+1_amd64.deb
postgresql-16-documentdb 1.0 u26.aarch64 pigsty 5.7 MiB postgresql-16-documentdb_1.0-1PGSTY~resolute_arm64.deb
postgresql-16-documentdb 1.0 u26.aarch64 pgdg 5.2 MiB postgresql-16-documentdb_1.0~RC1-2.pgdg26.04+1_arm64.deb
postgresql-16-documentdb 1.0 u26.aarch64 pgdg 5.2 MiB postgresql-16-documentdb_1.0~RC1-1.pgdg26.04+1_arm64.deb
postgresql-16-documentdb 0.117 u26.aarch64 pgdg 5.2 MiB postgresql-16-documentdb_0.117-0-1.pgdg26.04+1_arm64.deb
Package Version OS ORG SIZE File URL
documentdb_15 0.117 el8.x86_64 pigsty 6.0 MiB documentdb_15-0.117-1PGSTY.el8.x86_64.rpm
documentdb_15 0.117 el8.aarch64 pigsty 5.8 MiB documentdb_15-0.117-1PGSTY.el8.aarch64.rpm
documentdb_15 0.117 el9.x86_64 pigsty 5.9 MiB documentdb_15-0.117-1PGSTY.el9.x86_64.rpm
documentdb_15 0.117 el9.aarch64 pigsty 5.8 MiB documentdb_15-0.117-1PGSTY.el9.aarch64.rpm
documentdb_15 0.117 el10.x86_64 pigsty 5.9 MiB documentdb_15-0.117-1PGSTY.el10.x86_64.rpm
documentdb_15 0.117 el10.aarch64 pigsty 5.8 MiB documentdb_15-0.117-1PGSTY.el10.aarch64.rpm
postgresql-15-documentdb 0.117 d12.x86_64 pigsty 5.6 MiB postgresql-15-documentdb_0.117-1PGSTY~bookworm_amd64.deb
postgresql-15-documentdb 0.117 d12.aarch64 pigsty 5.3 MiB postgresql-15-documentdb_0.117-1PGSTY~bookworm_arm64.deb
postgresql-15-documentdb 1.0 d13.x86_64 pgdg 5.6 MiB postgresql-15-documentdb_1.0~RC1-2.pgdg13+1_amd64.deb
postgresql-15-documentdb 1.0 d13.x86_64 pgdg 5.6 MiB postgresql-15-documentdb_1.0~RC1-1.pgdg13+1_amd64.deb
postgresql-15-documentdb 0.117 d13.x86_64 pgdg 5.5 MiB postgresql-15-documentdb_0.117-0-1.pgdg13+1_amd64.deb
postgresql-15-documentdb 0.117 d13.x86_64 pigsty 5.6 MiB postgresql-15-documentdb_0.117-1PGSTY~trixie_amd64.deb
postgresql-15-documentdb 1.0 d13.aarch64 pgdg 5.4 MiB postgresql-15-documentdb_1.0~RC1-2.pgdg13+1_arm64.deb
postgresql-15-documentdb 1.0 d13.aarch64 pgdg 5.4 MiB postgresql-15-documentdb_1.0~RC1-1.pgdg13+1_arm64.deb
postgresql-15-documentdb 0.117 d13.aarch64 pgdg 5.3 MiB postgresql-15-documentdb_0.117-0-1.pgdg13+1_arm64.deb
postgresql-15-documentdb 0.117 d13.aarch64 pigsty 5.4 MiB postgresql-15-documentdb_0.117-1PGSTY~trixie_arm64.deb
postgresql-15-documentdb 0.117 u22.x86_64 pigsty 6.4 MiB postgresql-15-documentdb_0.117-1PGSTY~jammy_amd64.deb
postgresql-15-documentdb 0.117 u22.aarch64 pigsty 6.2 MiB postgresql-15-documentdb_0.117-1PGSTY~jammy_arm64.deb
postgresql-15-documentdb 0.117 u24.x86_64 pigsty 5.8 MiB postgresql-15-documentdb_0.117-1PGSTY~noble_amd64.deb
postgresql-15-documentdb 0.117 u24.aarch64 pigsty 5.7 MiB postgresql-15-documentdb_0.117-1PGSTY~noble_arm64.deb
postgresql-15-documentdb 1.0 u26.x86_64 pgdg 5.5 MiB postgresql-15-documentdb_1.0~RC1-2.pgdg26.04+1_amd64.deb
postgresql-15-documentdb 1.0 u26.x86_64 pgdg 5.5 MiB postgresql-15-documentdb_1.0~RC1-1.pgdg26.04+1_amd64.deb
postgresql-15-documentdb 0.117 u26.x86_64 pgdg 5.4 MiB postgresql-15-documentdb_0.117-0-1.pgdg26.04+1_amd64.deb
postgresql-15-documentdb 0.117 u26.x86_64 pigsty 5.8 MiB postgresql-15-documentdb_0.117-1PGSTY~resolute_amd64.deb
postgresql-15-documentdb 1.0 u26.aarch64 pgdg 5.3 MiB postgresql-15-documentdb_1.0~RC1-2.pgdg26.04+1_arm64.deb
postgresql-15-documentdb 1.0 u26.aarch64 pgdg 5.3 MiB postgresql-15-documentdb_1.0~RC1-1.pgdg26.04+1_arm64.deb
postgresql-15-documentdb 0.117 u26.aarch64 pgdg 5.2 MiB postgresql-15-documentdb_0.117-0-1.pgdg26.04+1_arm64.deb
postgresql-15-documentdb 0.117 u26.aarch64 pigsty 5.7 MiB postgresql-15-documentdb_0.117-1PGSTY~resolute_arm64.deb

Source

documentdb-1.0-0.tar.gz intelrdfpmath-applied-2.0u3-1.tar.gz

pig build pkg documentdb;		# build rpm/deb

Install

Make sure PGDG and PIGSTY repo available:

pig repo add pgsql -u   # add both repo and update cache

Install this extension with pig:

pig install documentdb;		# install via package name, for the active PG version

pig install documentdb -v 18;   # install for PG 18
pig install documentdb -v 17;   # install for PG 17
pig install documentdb -v 16;   # install for PG 16

Config this extension to shared_preload_libraries:

shared_preload_libraries = 'pg_documentdb_core, pg_cron, pg_documentdb';

Create this extension with:

CREATE EXTENSION documentdb CASCADE; -- requires documentdb_core, pg_cron, postgis, tsm_system_rows, vector

Usage

Sources:

documentdb is the public PostgreSQL API extension for DocumentDB, an open-source MongoDB-compatible document database built on PostgreSQL. It stores BSON documents and implements CRUD, aggregation, full-text, geospatial, and vector workflows. MongoDB drivers require the separate DocumentDB gateway; installing this extension alone exposes the PostgreSQL API, not a wire-protocol listener.

Configure and Install

The official deployment helper preloads the core and API libraries with pg_cron. Restart PostgreSQL after changing this setting:

shared_preload_libraries = 'pg_cron, pg_documentdb_core, pg_documentdb, pg_documentdb_extended_rum'

Install the public extension and its declared dependencies:

CREATE EXTENSION documentdb CASCADE;
CREATE EXTENSION documentdb_extended_rum;

CASCADE can install documentdb_core, pg_cron, tsm_system_rows, vector, and postgis when their files are present. Installation is superuser-only and non-relocatable.

Native SQL Workflow

The SQL surface uses a database name, collection name, and BSON command document:

SELECT documentdb_api.create_collection('appdb', 'people');

SELECT documentdb_api.insert_one(
  'appdb',
  'people',
  '{"_id": 1, "name": "Ada", "team": "storage"}',
  NULL
);

SELECT document
FROM documentdb_api_catalog.bson_aggregation_find(
  'appdb',
  '{"find":"people","filter":{"team":"storage"}}'
);

For application compatibility, run the gateway and use a supported MongoDB driver against its configured TLS endpoint. The gateway translates wire-protocol commands into this PostgreSQL API.

Important Objects

  • documentdb_api contains collection-management and command functions such as create_collection and insert_one.
  • documentdb_api_catalog.bson_aggregation_find executes a MongoDB-style find specification and returns BSON documents.
  • documentdb_core.bson is the storage and interchange type supplied by documentdb_core.
  • DocumentDB roles and internal schemas separate public read/write operations from administrative and implementation objects.
  • documentdb.enableNonBlockingUniqueIndexBuild controls the v0.114 path for background unique ordered-index builds and is enabled by default in that release.

Version and Operational Notes

Release 1.0-0 adds the first generally available release line. It fixes permission checks for zero-batch reads and write permissions for merge/output targets, along with crash, geospatial ordering and index-vacuum bugs. Custom role CRUD and post-join nested lookup remain disabled by default behind their settings. Match all libraries and apply the release upgrade SQL.

The official DocumentDB Local container enables usage telemetry by default; native packages are unaffected. Set DOCUMENTDB_USAGE_TELEMETRY=false, NO_ANALYTICS=1 or DO_NOT_TRACK=1 to disable it in the container.

MongoDB compatibility is not identical to every MongoDB server version. Test operators, index behavior, transactions, schema validation, authentication, and driver behavior used by the application. Match documentdb, documentdb_core, gateway, and optional distributed/index components to the same release line.