Skip to content

documentdb

API surface for DocumentDB for PostgreSQL

documentdb · API surface for DocumentDB for PostgreSQL

Overview

IDExtensionPackageVersionCategoryLicenseLanguage
9000documentdbdocumentdb1.2SIMMITC
AttributeHas BinaryHas LibraryNeed LoadHas DDLRelocatableTrusted
--sLd--NoYesYesYesnono
Relationships
Schemasdocumentdb_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
Requiresdocumentdb_core pg_cron postgis tsm_system_rows vector
Need Bydocumentdb_extended_rum
See Alsopgbson jsquery pg_projection mongo_fdw pgjq pg_graphql omni_rest pg_jsonschema pg_net jsonschema
Siblingsdocumentdb_core documentdb_extended_rum
SQL 1.2-0. RPM requires external RUM on PG15–17.

Packages

TypeRepoVersionPG Major CompatibilityPackage PatternDependencies
EXTPIGSTY1.219 18 17 16 15documentdbdocumentdb_core, pg_cron, postgis, tsm_system_rows, vector
RPMPIGSTY1.219 18 17 16 15documentdb_$vpostgresql$v-contrib, pg_cron_$v, pgvector_$v, rum_$v, postgis37_$v
DEBPIGSTY1.219 18 17 16 15postgresql-$v-documentdbpostgresql-$v-cron, postgresql-$v-pgvector, postgresql-$v-rum, postgresql-$v-postgis-3
Linux / PGPG19PG18PG17PG16PG15
el8.x86_64N/APIGSTY 1.2PIGSTY 1.2PIGSTY 1.2PIGSTY 1.2
el8.aarch64N/APIGSTY 1.2PIGSTY 1.2PIGSTY 1.2PIGSTY 1.2
el9.x86_64PIGSTY 1.2PIGSTY 1.2PIGSTY 1.2PIGSTY 1.2PIGSTY 1.2
el9.aarch64PIGSTY 1.2PIGSTY 1.2PIGSTY 1.2PIGSTY 1.2PIGSTY 1.2
el10.x86_64PIGSTY 1.2PIGSTY 1.2PIGSTY 1.2PIGSTY 1.2PIGSTY 1.2
el10.aarch64PIGSTY 1.2PIGSTY 1.2PIGSTY 1.2PIGSTY 1.2PIGSTY 1.2
d12.x86_64PIGSTY 1.2PIGSTY 1.2PIGSTY 1.2PIGSTY 1.2PIGSTY 0.117
d12.aarch64PIGSTY 1.2PIGSTY 1.2PIGSTY 1.2PIGSTY 1.2PIGSTY 0.117
d13.x86_64PIGSTY 1.2PGDG 1.2PGDG 1.2PGDG 1.2PGDG 1.2
d13.aarch64PIGSTY 1.2PGDG 1.2PGDG 1.2PGDG 1.2PGDG 1.2
u22.x86_64PIGSTY 1.2PIGSTY 1.2PIGSTY 1.2PIGSTY 1.2PIGSTY 0.117
u22.aarch64PIGSTY 1.2PIGSTY 1.2PIGSTY 1.2PIGSTY 1.2PIGSTY 0.117
u24.x86_64PIGSTY 1.2PIGSTY 1.2PIGSTY 1.2PIGSTY 1.2PIGSTY 0.117
u24.aarch64PIGSTY 1.2PIGSTY 1.2PIGSTY 1.2PIGSTY 1.2PIGSTY 0.117
u26.x86_64PIGSTY 1.2PGDG 1.2PGDG 1.2PGDG 1.2PGDG 1.2
u26.aarch64PIGSTY 1.2PGDG 1.2PGDG 1.2PGDG 1.2PGDG 1.2
PackageVersionOSORGSIZEFile URL
documentdb_181.2el8.x86_64pigsty6.2 MiBdocumentdb_18-1.2-1PGSTY.el8.x86_64.rpm
documentdb_181.2el8.aarch64pigsty5.9 MiBdocumentdb_18-1.2-1PGSTY.el8.aarch64.rpm
documentdb_181.2el9.x86_64pigsty6.0 MiBdocumentdb_18-1.2-1PGSTY.el9.x86_64.rpm
documentdb_181.2el9.aarch64pigsty5.9 MiBdocumentdb_18-1.2-1PGSTY.el9.aarch64.rpm
documentdb_181.2el10.x86_64pigsty6.1 MiBdocumentdb_18-1.2-1PGSTY.el10.x86_64.rpm
documentdb_181.2el10.aarch64pigsty5.9 MiBdocumentdb_18-1.2-1PGSTY.el10.aarch64.rpm
postgresql-18-documentdb1.2d12.x86_64pigsty5.7 MiBpostgresql-18-documentdb_1.2-1PGSTY~bookworm_amd64.deb
postgresql-18-documentdb1.2d12.aarch64pigsty5.5 MiBpostgresql-18-documentdb_1.2-1PGSTY~bookworm_arm64.deb
postgresql-18-documentdb1.2d13.x86_64pgdg5.7 MiBpostgresql-18-documentdb_1.2-0-1.pgdg13+1_amd64.deb
postgresql-18-documentdb1.2d13.x86_64pigsty5.7 MiBpostgresql-18-documentdb_1.2-1PGSTY~trixie_amd64.deb
postgresql-18-documentdb1.0d13.x86_64pgdg5.5 MiBpostgresql-18-documentdb_1.0-1-1.pgdg13+2_amd64.deb
postgresql-18-documentdb1.0d13.x86_64pgdg5.5 MiBpostgresql-18-documentdb_1.0-0-1.pgdg13+1_amd64.deb
postgresql-18-documentdb1.2d13.aarch64pgdg5.5 MiBpostgresql-18-documentdb_1.2-0-1.pgdg13+1_arm64.deb
postgresql-18-documentdb1.2d13.aarch64pigsty5.5 MiBpostgresql-18-documentdb_1.2-1PGSTY~trixie_arm64.deb
postgresql-18-documentdb1.0d13.aarch64pgdg5.3 MiBpostgresql-18-documentdb_1.0-1-1.pgdg13+2_arm64.deb
postgresql-18-documentdb1.0d13.aarch64pgdg5.3 MiBpostgresql-18-documentdb_1.0-0-1.pgdg13+1_arm64.deb
postgresql-18-documentdb1.2u22.x86_64pigsty6.1 MiBpostgresql-18-documentdb_1.2-1PGSTY~jammy_amd64.deb
postgresql-18-documentdb1.2u22.aarch64pigsty5.9 MiBpostgresql-18-documentdb_1.2-1PGSTY~jammy_arm64.deb
postgresql-18-documentdb1.2u24.x86_64pigsty5.9 MiBpostgresql-18-documentdb_1.2-1PGSTY~noble_amd64.deb
postgresql-18-documentdb1.2u24.aarch64pigsty5.8 MiBpostgresql-18-documentdb_1.2-1PGSTY~noble_arm64.deb
postgresql-18-documentdb1.2u26.x86_64pgdg5.6 MiBpostgresql-18-documentdb_1.2-0-1.pgdg26.04+1_amd64.deb
postgresql-18-documentdb1.2u26.x86_64pigsty5.9 MiBpostgresql-18-documentdb_1.2-1PGSTY~resolute_amd64.deb
postgresql-18-documentdb1.0u26.x86_64pgdg5.4 MiBpostgresql-18-documentdb_1.0-1-1.pgdg26.04+2_amd64.deb
postgresql-18-documentdb1.0u26.x86_64pgdg5.4 MiBpostgresql-18-documentdb_1.0-0-1.pgdg26.04+1_amd64.deb
postgresql-18-documentdb1.2u26.aarch64pgdg5.4 MiBpostgresql-18-documentdb_1.2-0-1.pgdg26.04+1_arm64.deb
postgresql-18-documentdb1.2u26.aarch64pigsty5.8 MiBpostgresql-18-documentdb_1.2-1PGSTY~resolute_arm64.deb
postgresql-18-documentdb1.0u26.aarch64pgdg5.2 MiBpostgresql-18-documentdb_1.0-1-1.pgdg26.04+2_arm64.deb
postgresql-18-documentdb1.0u26.aarch64pgdg5.2 MiBpostgresql-18-documentdb_1.0-0-1.pgdg26.04+1_arm64.deb
PackageVersionOSORGSIZEFile URL
documentdb_171.2el8.x86_64pigsty6.2 MiBdocumentdb_17-1.2-1PGSTY.el8.x86_64.rpm
documentdb_171.2el8.aarch64pigsty5.9 MiBdocumentdb_17-1.2-1PGSTY.el8.aarch64.rpm
documentdb_171.2el9.x86_64pigsty6.0 MiBdocumentdb_17-1.2-1PGSTY.el9.x86_64.rpm
documentdb_171.2el9.aarch64pigsty5.9 MiBdocumentdb_17-1.2-1PGSTY.el9.aarch64.rpm
documentdb_171.2el10.x86_64pigsty6.1 MiBdocumentdb_17-1.2-1PGSTY.el10.x86_64.rpm
documentdb_171.2el10.aarch64pigsty5.9 MiBdocumentdb_17-1.2-1PGSTY.el10.aarch64.rpm
postgresql-17-documentdb1.2d12.x86_64pigsty5.7 MiBpostgresql-17-documentdb_1.2-1PGSTY~bookworm_amd64.deb
postgresql-17-documentdb1.2d12.aarch64pigsty5.5 MiBpostgresql-17-documentdb_1.2-1PGSTY~bookworm_arm64.deb
postgresql-17-documentdb1.2d13.x86_64pgdg5.7 MiBpostgresql-17-documentdb_1.2-0-1.pgdg13+1_amd64.deb
postgresql-17-documentdb1.2d13.x86_64pigsty5.7 MiBpostgresql-17-documentdb_1.2-1PGSTY~trixie_amd64.deb
postgresql-17-documentdb1.0d13.x86_64pgdg5.5 MiBpostgresql-17-documentdb_1.0-1-1.pgdg13+2_amd64.deb
postgresql-17-documentdb1.0d13.x86_64pgdg5.5 MiBpostgresql-17-documentdb_1.0-0-1.pgdg13+1_amd64.deb
postgresql-17-documentdb1.2d13.aarch64pgdg5.5 MiBpostgresql-17-documentdb_1.2-0-1.pgdg13+1_arm64.deb
postgresql-17-documentdb1.2d13.aarch64pigsty5.5 MiBpostgresql-17-documentdb_1.2-1PGSTY~trixie_arm64.deb
postgresql-17-documentdb1.0d13.aarch64pgdg5.3 MiBpostgresql-17-documentdb_1.0-1-1.pgdg13+2_arm64.deb
postgresql-17-documentdb1.0d13.aarch64pgdg5.3 MiBpostgresql-17-documentdb_1.0-0-1.pgdg13+1_arm64.deb
postgresql-17-documentdb1.2u22.x86_64pigsty6.5 MiBpostgresql-17-documentdb_1.2-1PGSTY~jammy_amd64.deb
postgresql-17-documentdb1.2u22.aarch64pigsty6.4 MiBpostgresql-17-documentdb_1.2-1PGSTY~jammy_arm64.deb
postgresql-17-documentdb1.2u24.x86_64pigsty5.9 MiBpostgresql-17-documentdb_1.2-1PGSTY~noble_amd64.deb
postgresql-17-documentdb1.2u24.aarch64pigsty5.8 MiBpostgresql-17-documentdb_1.2-1PGSTY~noble_arm64.deb
postgresql-17-documentdb1.2u26.x86_64pgdg5.6 MiBpostgresql-17-documentdb_1.2-0-1.pgdg26.04+1_amd64.deb
postgresql-17-documentdb1.2u26.x86_64pigsty5.9 MiBpostgresql-17-documentdb_1.2-1PGSTY~resolute_amd64.deb
postgresql-17-documentdb1.0u26.x86_64pgdg5.4 MiBpostgresql-17-documentdb_1.0-1-1.pgdg26.04+2_amd64.deb
postgresql-17-documentdb1.0u26.x86_64pgdg5.4 MiBpostgresql-17-documentdb_1.0-0-1.pgdg26.04+1_amd64.deb
postgresql-17-documentdb1.2u26.aarch64pgdg5.4 MiBpostgresql-17-documentdb_1.2-0-1.pgdg26.04+1_arm64.deb
postgresql-17-documentdb1.2u26.aarch64pigsty5.8 MiBpostgresql-17-documentdb_1.2-1PGSTY~resolute_arm64.deb
postgresql-17-documentdb1.0u26.aarch64pgdg5.2 MiBpostgresql-17-documentdb_1.0-1-1.pgdg26.04+2_arm64.deb
postgresql-17-documentdb1.0u26.aarch64pgdg5.2 MiBpostgresql-17-documentdb_1.0-0-1.pgdg26.04+1_arm64.deb
PackageVersionOSORGSIZEFile URL
documentdb_161.2el8.x86_64pigsty6.2 MiBdocumentdb_16-1.2-1PGSTY.el8.x86_64.rpm
documentdb_161.2el8.aarch64pigsty5.9 MiBdocumentdb_16-1.2-1PGSTY.el8.aarch64.rpm
documentdb_161.2el9.x86_64pigsty6.0 MiBdocumentdb_16-1.2-1PGSTY.el9.x86_64.rpm
documentdb_161.2el9.aarch64pigsty5.9 MiBdocumentdb_16-1.2-1PGSTY.el9.aarch64.rpm
documentdb_161.2el10.x86_64pigsty6.1 MiBdocumentdb_16-1.2-1PGSTY.el10.x86_64.rpm
documentdb_161.2el10.aarch64pigsty5.9 MiBdocumentdb_16-1.2-1PGSTY.el10.aarch64.rpm
postgresql-16-documentdb1.2d12.x86_64pigsty5.7 MiBpostgresql-16-documentdb_1.2-1PGSTY~bookworm_amd64.deb
postgresql-16-documentdb1.2d12.aarch64pigsty5.5 MiBpostgresql-16-documentdb_1.2-1PGSTY~bookworm_arm64.deb
postgresql-16-documentdb1.2d13.x86_64pgdg5.7 MiBpostgresql-16-documentdb_1.2-0-1.pgdg13+1_amd64.deb
postgresql-16-documentdb1.2d13.x86_64pigsty5.7 MiBpostgresql-16-documentdb_1.2-1PGSTY~trixie_amd64.deb
postgresql-16-documentdb1.0d13.x86_64pgdg5.5 MiBpostgresql-16-documentdb_1.0-1-1.pgdg13+2_amd64.deb
postgresql-16-documentdb1.0d13.x86_64pgdg5.5 MiBpostgresql-16-documentdb_1.0-0-1.pgdg13+1_amd64.deb
postgresql-16-documentdb1.2d13.aarch64pgdg5.5 MiBpostgresql-16-documentdb_1.2-0-1.pgdg13+1_arm64.deb
postgresql-16-documentdb1.2d13.aarch64pigsty5.5 MiBpostgresql-16-documentdb_1.2-1PGSTY~trixie_arm64.deb
postgresql-16-documentdb1.0d13.aarch64pgdg5.3 MiBpostgresql-16-documentdb_1.0-1-1.pgdg13+2_arm64.deb
postgresql-16-documentdb1.0d13.aarch64pgdg5.3 MiBpostgresql-16-documentdb_1.0-0-1.pgdg13+1_arm64.deb
postgresql-16-documentdb1.2u22.x86_64pigsty6.5 MiBpostgresql-16-documentdb_1.2-1PGSTY~jammy_amd64.deb
postgresql-16-documentdb1.2u22.aarch64pigsty6.4 MiBpostgresql-16-documentdb_1.2-1PGSTY~jammy_arm64.deb
postgresql-16-documentdb1.2u24.x86_64pigsty5.9 MiBpostgresql-16-documentdb_1.2-1PGSTY~noble_amd64.deb
postgresql-16-documentdb1.2u24.aarch64pigsty5.8 MiBpostgresql-16-documentdb_1.2-1PGSTY~noble_arm64.deb
postgresql-16-documentdb1.2u26.x86_64pgdg5.6 MiBpostgresql-16-documentdb_1.2-0-1.pgdg26.04+1_amd64.deb
postgresql-16-documentdb1.2u26.x86_64pigsty5.9 MiBpostgresql-16-documentdb_1.2-1PGSTY~resolute_amd64.deb
postgresql-16-documentdb1.0u26.x86_64pgdg5.4 MiBpostgresql-16-documentdb_1.0-1-1.pgdg26.04+2_amd64.deb
postgresql-16-documentdb1.0u26.x86_64pgdg5.4 MiBpostgresql-16-documentdb_1.0-0-1.pgdg26.04+1_amd64.deb
postgresql-16-documentdb1.2u26.aarch64pgdg5.4 MiBpostgresql-16-documentdb_1.2-0-1.pgdg26.04+1_arm64.deb
postgresql-16-documentdb1.2u26.aarch64pigsty5.8 MiBpostgresql-16-documentdb_1.2-1PGSTY~resolute_arm64.deb
postgresql-16-documentdb1.0u26.aarch64pgdg5.2 MiBpostgresql-16-documentdb_1.0-1-1.pgdg26.04+2_arm64.deb
postgresql-16-documentdb1.0u26.aarch64pgdg5.2 MiBpostgresql-16-documentdb_1.0-0-1.pgdg26.04+1_arm64.deb
PackageVersionOSORGSIZEFile URL
documentdb_151.2el8.x86_64pigsty6.2 MiBdocumentdb_15-1.2-1PGSTY.el8.x86_64.rpm
documentdb_151.2el8.aarch64pigsty6.0 MiBdocumentdb_15-1.2-1PGSTY.el8.aarch64.rpm
documentdb_151.2el9.x86_64pigsty6.1 MiBdocumentdb_15-1.2-1PGSTY.el9.x86_64.rpm
documentdb_151.2el9.aarch64pigsty5.9 MiBdocumentdb_15-1.2-1PGSTY.el9.aarch64.rpm
documentdb_151.2el10.x86_64pigsty6.2 MiBdocumentdb_15-1.2-1PGSTY.el10.x86_64.rpm
documentdb_151.2el10.aarch64pigsty6.0 MiBdocumentdb_15-1.2-1PGSTY.el10.aarch64.rpm
postgresql-15-documentdb0.117d12.x86_64pigsty5.6 MiBpostgresql-15-documentdb_0.117-1PGSTY~bookworm_amd64.deb
postgresql-15-documentdb0.117d12.aarch64pigsty5.3 MiBpostgresql-15-documentdb_0.117-1PGSTY~bookworm_arm64.deb
postgresql-15-documentdb1.2d13.x86_64pgdg5.7 MiBpostgresql-15-documentdb_1.2-0-1.pgdg13+1_amd64.deb
postgresql-15-documentdb1.0d13.x86_64pgdg5.6 MiBpostgresql-15-documentdb_1.0-1-1.pgdg13+2_amd64.deb
postgresql-15-documentdb1.0d13.x86_64pgdg5.6 MiBpostgresql-15-documentdb_1.0-0-1.pgdg13+1_amd64.deb
postgresql-15-documentdb0.117d13.x86_64pigsty5.6 MiBpostgresql-15-documentdb_0.117-1PGSTY~trixie_amd64.deb
postgresql-15-documentdb1.2d13.aarch64pgdg5.5 MiBpostgresql-15-documentdb_1.2-0-1.pgdg13+1_arm64.deb
postgresql-15-documentdb1.0d13.aarch64pgdg5.4 MiBpostgresql-15-documentdb_1.0-1-1.pgdg13+2_arm64.deb
postgresql-15-documentdb1.0d13.aarch64pgdg5.4 MiBpostgresql-15-documentdb_1.0-0-1.pgdg13+1_arm64.deb
postgresql-15-documentdb0.117d13.aarch64pigsty5.4 MiBpostgresql-15-documentdb_0.117-1PGSTY~trixie_arm64.deb
postgresql-15-documentdb0.117u22.x86_64pigsty6.4 MiBpostgresql-15-documentdb_0.117-1PGSTY~jammy_amd64.deb
postgresql-15-documentdb0.117u22.aarch64pigsty6.2 MiBpostgresql-15-documentdb_0.117-1PGSTY~jammy_arm64.deb
postgresql-15-documentdb0.117u24.x86_64pigsty5.8 MiBpostgresql-15-documentdb_0.117-1PGSTY~noble_amd64.deb
postgresql-15-documentdb0.117u24.aarch64pigsty5.7 MiBpostgresql-15-documentdb_0.117-1PGSTY~noble_arm64.deb
postgresql-15-documentdb1.2u26.x86_64pgdg5.6 MiBpostgresql-15-documentdb_1.2-0-1.pgdg26.04+1_amd64.deb
postgresql-15-documentdb1.0u26.x86_64pgdg5.5 MiBpostgresql-15-documentdb_1.0-1-1.pgdg26.04+2_amd64.deb
postgresql-15-documentdb1.0u26.x86_64pgdg5.5 MiBpostgresql-15-documentdb_1.0-0-1.pgdg26.04+1_amd64.deb
postgresql-15-documentdb0.117u26.x86_64pigsty5.8 MiBpostgresql-15-documentdb_0.117-1PGSTY~resolute_amd64.deb
postgresql-15-documentdb1.2u26.aarch64pgdg5.4 MiBpostgresql-15-documentdb_1.2-0-1.pgdg26.04+1_arm64.deb
postgresql-15-documentdb1.0u26.aarch64pgdg5.3 MiBpostgresql-15-documentdb_1.0-1-1.pgdg26.04+2_arm64.deb
postgresql-15-documentdb1.0u26.aarch64pgdg5.3 MiBpostgresql-15-documentdb_1.0-0-1.pgdg26.04+1_arm64.deb
postgresql-15-documentdb0.117u26.aarch64pigsty5.7 MiBpostgresql-15-documentdb_0.117-1PGSTY~resolute_arm64.deb

Source

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 by package name

pig install documentdb -v 19;   # install for PG 19
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
pig install documentdb -v 15;   # install for PG 15

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.

DocumentDB 1.2 changes

DocumentDB 1.2 uses SQL version 1.2-0. Back up the data directory before upgrading; reverting upgraded data to 1.0 is not supported. The official 1.2 container updates extensions before starting the gateway and refuses startup without an explicit password, including on an existing volume. For an adopted PostgreSQL instance, follow the package guide’s restart and update sequence rather than restarting or altering unrelated instances.

Collation remains disabled unless documentdb_core.enableCollation = on, even for explicit simple collation. Collated non-unique indexes additionally require documentdb.enableCollationWithNonUniqueOrderedIndexes; collated unique indexes also require documentdb.enable_collated_unique_indexes and documentdb.enable_composite_unique_optional_key. The release adds per-command/per-update collation behavior and fixes descending unique-index null/missing conflicts, $dateTrunc day boundaries and rescanned $densify results. Review affected query and index semantics after upgrading.

Table reader