encdb_btree
encdb_btree · Alibaba Cloud RDS extension that accelerates ciphertext index queries for Always Confidential Databases.
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 100984 | encdb_btree | encdb_btree | 1.0.0 | SEC | Unknown | C |
PostgreSQL · 10, 11, 12, 13, 14, 15, 16, 17
| Relationships | |
|---|---|
| Requires | encdb |
Usage
Sources:
encdb_btree 1.0.0 is an Alibaba Cloud ApsaraDB RDS for PostgreSQL provider extension. It adds the enc_btree index access method for equality and range operations on ciphertext columns in an Always confidential database. It is not a portable community extension.
Prerequisites and installation
Use an Always confidential database whose minor engine version is 20230830 or later. Install the provider’s base encdb extension first:
Create single-column, unique, or multicolumn ciphertext indexes with the new access method:
Existing SQL can use these indexes when the provider planner produces a compatible plan. Confirm index selection with EXPLAIN against representative encrypted data.
Operational limits
An enc_btree unique index cannot support INSERT ... ON CONFLICT because speculative insertion is unsupported. It is also incompatible with foreign-key constraints. These restrictions affect schema and application design, so test migrations before enabling encryption in production.
The extension cannot be dropped while dependent ciphertext indexes remain. DROP EXTENSION encdb_btree CASCADE removes those indexes, although it does not remove their tables or table data. Inventory dependent indexes and retain a rollback plan before any drop or engine change. Availability, privileges, upgrades, and backups follow the managed-service contract rather than upstream PostgreSQL packaging.