| title | DocumentDB 1.2 Release Notes |
|---|---|
| description | What's new in DocumentDB 1.2, where to get it, the container changes that can stop an existing setup from starting, and how to upgrade from 1.0. |
DocumentDB v1.2-0 was released on 2026-11-12. It is the release after 1.0. There was no 1.1 release; its changes ship in 1.2. The changelog lists the engine changes.
| Channel | 1.2 version | Platforms |
|---|---|---|
| Linux packages | packages 1.2.0, extension 1.2-0 |
Ubuntu 24.04 and RHEL-compatible 9, PostgreSQL 17 and 18, amd64 and arm64 |
| Container image | pg15-1.2.0 to pg18-1.2.0; latest and 1.2 point to pg17-1.2.0 |
Linux amd64 and arm64 |
| PGDG APT repository | packages 1.2-0-1.pgdg…, extension 1.2-0 (extension only) |
Debian 13 and 14, Ubuntu 26.04 (including amd64 and arm64) and 26.10 (amd64), PostgreSQL 15 to 18 |
The SQL extension version is 1.2-0, and hello reports it in internal.documentdb_versions.
- Collation now works with
distinct,findAndModifyandupdate, including per-update collation in multi-document updates and upserts. An explicitsimplecollation is treated as no collation. Values that would have to be truncated in a collated index are rejected on writes and indexed reads. Collation is still off by default; see Collation. - Users and roles.
dropUserandupdateUserreject user names of 64 bytes or more, so an overlong name can no longer drop or change the user whose name is its 63-byte prefix (#734).rolesInfo,usersInfoandconnectionStatusreturn custom-role metadata; admin and root users see every custom role, other users the roles they inherit. $dateTruncwithunit: "day"uses PostgreSQL'sdate_bin, so bins are exact calendar days aligned to the reference date and respect time zone boundaries. Strides and results outside PostgreSQL's range are rejected. Setdocumentdb.enable_date_trunc_day_with_pg_bintoofffor the old behavior.- Unique indexes. Descending unique indexes now enforce null and missing conflicts, including on compound keys and collated indexes (
documentdb.enable_unique_null_missing_semantics, on by default). collModcan rename an index when its key pattern and current name both match.bson_build_documentacceptstimestamptzvalues and writes them as BSON dates with millisecond precision.- Query planning.
$elemMatchpredicates and the inner side of a$lookupare estimated from collected statistics, and dynamic cursor queries without planner statistics skip parallel plans. Field pruning before$unwindand order-by pushdown for$groupover multi-key composite indexes are on by default. - Fixes for crashes and wrong results when a correlated
$lookuprescans a$densifystage, wrong sort and group results when a null equality falls between compound-index sort keys, and RUM leaf splits that could overflow with large index terms. - Gateway metrics are renamed. If you export the gateway's metrics, the
db.client.*names are nowdocdb.gateway.*: for exampledb.client.operationsisdocdb.gateway.operationsanddb.client.operation.durationisdocdb.gateway.operation.duration. Update dashboards and alerts that use the old names. New metrics cover authentication attempts, cursors, sessions and transactions. - Retired settings. The
enableSkipDottedFieldIndexTermsandenable_ordered_operator_scanssettings are removed; their behavior is now always on.
Two of these can stop an existing docker run command or Compose file from starting:
- A password is required. Without
PASSWORDor--passwordthe container exits at startup instead of creating the admin user with the public default.DOCUMENTDB_ALLOW_DEFAULT_PASSWORD=truerestores that default for short-lived local evaluation. With--create-user falsea password is needed only to load data. On an existing volume the admin user keeps the password it was created with. TLS_MODEtakes one value. An emptyTLS_MODE, or a list such asallowTLS,requireTLS, is rejected.
Also in the image:
--passwordno longer stays in the container's process list. Both--passwordandPASSWORDare still visible todocker inspect.--log-levelsets the gateway's log level;quietstill shows errors.- A newer image updates the extensions on an existing data volume at start.
- Packages: 1.0 installations upgrade in place: upgrade the packages, then run
sudo documentdb-setup --pg-version <major> --yes, which restarts PostgreSQL once and updates the extensions, keeping the admin users. See Upgrading. - Containers: start the 1.2 image on the 1.0 volume; it updates the extensions at start. Going back to 1.0 on that volume isn't supported. See Upgrading the image.
- Release candidates: hosts and volumes that ran a release candidate have no supported upgrade path.
Open an issue in documentdb/documentdb with your DocumentDB and PostgreSQL versions, and either the package versions or the Release Version line from docker logs.