All Products
Search
Document Center

AnalyticDB:2023

Last Updated:Mar 28, 2026

This page covers the kernel release notes for AnalyticDB for PostgreSQL in elastic storage mode for 2023.

To upgrade your instance to the latest minor version, see Upgrade the minor version.

December 2023

V6.3.10.26

Improvements

FeatureDescription
OptimizerOptimizes multi-table JOINs to prevent significant increases in query time and memory usage when the join_collapse_limit parameter is increased.
OptimizerOptimizes EXPLAIN performance for JOINs between a partitioned table with many partitions and a MaxCompute external table.

Bug fixes

  • Fixed a deadlock between ALTER TABLE ADD PARTITION and VACUUM FULL pg_index that could cause instance unavailability.

  • Fixed a core dump in the tdfunc extension caused by improper NULL value handling in the NVL function.

  • Fixed a memory leak in the execution engine's Dynamic Index Scan operator during partitioned table scans.

  • Fixed incorrect results from a semi-join on a replicated table when using the Orca optimizer.

  • Fixed a deadlock on tables with an ANN index during vector database scale-out.

  • Fixed a core dump caused by the incremental sort feature.

  • Fixed vector search queries hanging after a new column was added to the table.

  • Fixed the illegal rescan of motion node: invalid plan error during a Motion Rescan in a Nested Loop Index Join plan.

  • Fixed incorrect results from the Orca optimizer for queries involving a semi-join with a DISTINCT clause.

November 2023

V6.3.10.24

Bug fixes

  • Fixed a resource queue holder leak caused by CREATE CURSOR WITH HOLD.

  • Fixed a Merge Join plan with a partition selector that led to incorrect results or a core dump.

  • Fixed intermittent out-of-memory (OOM) errors during bitmap index scans on partitioned tables.

  • Fixed a file registration exception caused by premature release of WorkfileMgr.

  • Fixed a deadlock on tables with an ANN index during vector database scale-out.

  • Fixed abnormally high memory usage by the checkpointer process.

  • Fixed a convert_EXPR_to_join error in the planner.

  • Fixed a memory leak in the Global Deadlock Detector (GDD).

  • Fixed queries being stuck or delayed when REFRESH MATERIALIZED VIEW was executed on non-materialized views.

  • Fixed an unexpected primary coordinator node switchover caused by a prolonged Syncdatadir operation.

  • Fixed an incorrect maximum value retrieved for a variable-length sort key when auto-sorting a single-row table.

  • Fixed improper semaphore handling during codebook pre-training for a vector database.

  • Fixed incorrect results from the Orca optimizer for queries involving a semi-join with a DISTINCT clause.

  • Fixed table schema inconsistency when a constraint was deleted from a partitioned table but not from its child partitions.

V6.6.0.0

New features

Vector search

  • Supports the pgvector protocol, enabling seamless migration of workloads that use the pgvector extension to AnalyticDB for PostgreSQL vector databases.

  • Supports multiple indexes on a single vector column. The system automatically selects the appropriate index based on the distance metric.

  • Trains a codebook automatically when you create a vector index on a table that already contains data.

  • Adds the following vector UDFs: vector_sum, vector_max, vector_min, vector_avg, vector_norm, vector_angle, and vector_dot.

For more information, see Vector search.

Other new features

FeatureDescriptionReferences
pldbgapi extensionEnables debugging of PL/pgSQL functions.pldbgapi
Dynamic data maskingApplies column-level masking to sensitive columns. Use masking functions to display raw data in a masked format to protect sensitive information and improve data security.Dynamic data masking
Real-time materialized viewsAdds a sample dataset for real-time data warehousing to support testing of real-time data warehouses built on real-time materialized views.

Improvements

FeatureDescriptionReferences
OptimizerSignificantly reduces memory usage on coordinator and compute nodes in certain scenarios.
Real-time materialized viewsImproves performance for complex queries and OUTER JOIN scenarios.Real-time materialized views
Vector searchSupports vector distance calculation using the AVX-512F instruction set. Retrieves sorted distance values directly from vector indexes, avoiding repeated calculations. Stores original vectors in indexes to prevent multiple table lookups during index creation and queries. Stores normalized vectors in indexes to optimize cosine similarity performance.
Resource groupAdds underlying support for cgroups in proxy mode.

Bug fixes

  • Fixed a core dump caused by the planner during subquery execution.

  • Fixed data not being redistributed after a table was renamed during a scheduled instance scale-out.

  • Fixed a core dump during an INSERT operation on a real-time materialized view created with GROUP BY and UNION ALL clauses.

  • Fixed the cache lookup failed for extension 18713194 error when executing DROP TABLE.

  • Fixed the FastANN vector extension failing to install in the pg_catalog schema.

  • Fixed the reader could not find writer proc entry error occasionally occurring after parallel query was enabled.

  • Fixed the planner failing to prune the default partition of a partitioned table.

  • Fixed table schema inconsistency when a constraint was deleted from a partitioned table but not from its child partitions.

  • Fixed abnormally high memory usage by the checkpointer process.

  • Fixed a convert_EXPR_to_join error in the planner.

  • Fixed a core dump on Jsonb data caused by an incorrect plan for a Lateral Join.

  • Fixed residual temporary tables remaining on the coordinator node.

  • Fixed the MERGE operation on a column-oriented table failing to retrieve the maximum value for a variable-length sort key when only one row existed.

  • Fixed a resource queue holder leak caused by CREATE CURSOR WITH HOLD.

  • Fixed the can not found block: (-1, -1, -1, -1) error when using the Metascan feature for column-oriented tables.

  • Fixed the MIN/MAX subplan has unexpected flowtype: 351 error when generating a plan for a MIN or MAX operation on a system table.

September 2023

V6.3.11.3

New features

FeatureDescriptionReferences
Real-time materialized viewsAdds monitoring capabilities for real-time materialized views.Real-time materialized views
Cross-database querySupports federated queries across different instances using a foreign data wrapper (FDW), ensuring data timeliness and reducing data redundancy.Cross-database queries
Cross-instance queryEnables real-time interactive queries between AnalyticDB for PostgreSQL instances for federated analytics.Cross-instance queries

Improvements

FeatureDescription
OptimizerEnables in-list query optimization by default.
Oracle compatibilitySupports converting the unknown data type.

Bug fixes

  • Fixed Orca optimizer query failures for queries containing implicitly referenced columns.

  • Fixed a core dump in a real-time materialized view when an OUTER JOIN with a single operator in the WHERE clause was executed.

  • Fixed missing two-stage monitoring statistics for an OUTER JOIN with aggregation in real-time materialized views, and self-join calculation/application information being counted only once.

  • Fixed incorrect results caused by the planner converting an EXISTS clause to an INNER JOIN.

  • Fixed a resource queue holder leak caused by CREATE CURSOR WITH HOLD.

  • Fixed the could not retrieve tle for sort-from-groupcols error when generating a plan for an aggregate operation on a table with a primary key.

August 2023

V6.3.11.2

New features

FeatureDescriptionReferences
Vector searchAdds cosine similarity functions. Supports building vector indexes for text and vector data in parallel. Enhances hybrid search to accelerate indexing for semi-structured data and enable dual-channel retrieval using both vector and full-text search.Vector database overview
OptimizerThe Orca optimizer now supports Dynamic Join Filter. Supports converting an in-list subquery into a semi-join.Dynamic Join Filter
Real-time materialized viewsAppend-optimized column-oriented (AOCO) tables can now be used as base tables for real-time materialized views.Real-time materialized views
Tiered storage of hot and cold dataSupports storing infrequently accessed data in Object Storage Service (OSS) to reduce storage costs.Tiered storage of hot and cold data

Improvements

FeatureDescription
Vector searchImproves calculation speed for Inner Product (IP) and cosine distances. Optimizes kernel parameters for the vector search engine.
OptimizerImproves the Nested Loop Join cost model and optimizes index-related SQL plans. Optimizes memory usage for partitioned tables to prevent high memory consumption in large-partition scenarios. Adds multi-level dynamic partition pruning to the Orca optimizer. Improves Orca optimizer plan generation performance for partitioned tables. Improves Orca optimizer cardinality estimation accuracy for time-based data types.
Real-time materialized viewsImproves performance for complex queries and OUTER JOIN scenarios.

V6.3.10.20

New features

FeatureDescriptionReferences
Vector searchAdds Inner Product (IP) and Cosine (COSINE) distance metrics.Vector database overview

Bug fixes

  • Fixed the pg_cron extension failing to allow non-superuser accounts to create scheduled tasks for a specific user.

  • Fixed a compatibility issue with Oracle string concatenation.

  • Fixed the could not retrieve tle for sort-from-groupcols error when the optimizer generated a plan for an aggregate operation on a table with a primary key.

  • Fixed a Merge Join plan with a partition selector that led to incorrect results or a core dump.

  • Fixed a core dump or panic caused by the optimizer when handling a Lateral Join with a LIMIT clause.

July 2023

V6.3.10.16

New features

FeatureDescriptionReferences
Real-time materialized viewsSupports query rewriting for GROUP BY clauses that include ROLLUP or CUBE aggregations. Automatically completes missing GROUP BY columns in the query result target list when you create a real-time materialized view.Real-time materialized views

Improvements

FeatureDescriptionReferences
Real-time materialized viewsOptimizes naming of nested materialized views to prevent errors from excessively long names or subquery aliases.
OptimizerReduces Orca optimizer planning time for tables with many subpartitions.
Orafce extensionBackward compatible with version 3.25.Supported extensions
Query CacheExpands the scenarios where query results can be cached.Supported extensions

Bug fixes

  • Fixed scale-in failures when a CTAS plan was run in the Orca optimizer.

  • Fixed vertical scaling failures.

  • Fixed a core dump caused by sorted files during automatic background merging in a scale-out process.

  • Fixed instance scale-in failures when vector search was enabled.

  • Fixed the cache lookup failed for extension ... error when the kernel executed DROP TABLE.

  • Fixed the Orca optimizer not supporting aggregate functions on multiple DISTINCT objects.

  • Fixed the reader could not find writer proc entry error caused by the parallel query feature.

  • Fixed the can not found block: (-1, -1, -1, -1) error when using the Metascan feature for column-oriented tables.

  • Fixed inconsistent storage options (row-oriented or column-oriented) between a partitioned table and its child partitions.

  • Fixed an inconsistency in how the mmap engine and shared_buffer engine handle Product Quantization (PQ) for vector data.

  • Fixed mmap index files in the vector database not being fully recycled, leading to file leaks.

  • Fixed the vector algorithm library of the mmap engine failing to achieve a 100% recall rate by adjusting parameters when the initial recall rate was very low.

  • Fixed a core dump when executing UPDATE ... RETURNING ... on an append-optimized (AO) materialized view if the RETURNING clause contained Ctid.

  • Fixed missing dependencies on other coordinator nodes when automatically creating nested real-time materialized views in a multi-coordinator architecture.

May 2023

V6.3.10.14

Important

This release fixes the kernel vulnerability CVE-2023-2454. Upgrade AnalyticDB for PostgreSQL V6.0 instances in elastic storage mode to V6.3.10.14 or later.

New features

FeatureDescriptionReferences
Real-time materialized viewsSupports FROM subqueries.Real-time materialized views

Improvements

FeatureDescriptionReferences
Ganos extensionUpgraded to version 5.5.Overview

Bug fixes

  • Fixed the kernel vulnerability CVE-2023-2454.

  • Fixed UDFs used by the PL/Java extension causing residual pg processes.

  • Fixed an error that occurred when detecting and adding a secondary coordinator node during data recovery.

  • Fixed autovacuum jobs not being scheduled promptly in Fastworker mode.

  • Fixed Automerge holding a lock for an extended period, causing other queries to wait.

  • Fixed inaccurate display of scaling progress.

  • Fixed query resource skew caused by an interruption during full data recovery.

  • Fixed the transaction is already committed error during recovery of a distributed transaction on a compute node.

  • Fixed a core dump when accessing AOCO tables with parallel query enabled after an instance scale-out.

  • Fixed pg_rewind replication of WAL (Xlog) being affected by the statement_timeout parameter.

  • Fixed excessively long Orca optimizer planning time for tables with many subpartitions.

March 2023

V6.3.10.12

New features

FeatureDescriptionReferences
Real-time materialized viewsSupports multi-column PARTITION BY clauses.Real-time materialized views

Improvements

FeatureDescriptionReferences
Orafce extensionUpgraded to version 3.25.0.Use the Orafce extension

Bug fixes

  • Fixed a potential memory leak when using INSERT ON CONFLICT UPDATE or COPY ON CONFLICT UPDATE.

  • Fixed a missing distributed commit log (clog) file for a column-oriented auxiliary table.

  • Fixed scaling failures when the database contained partitioned external tables.

  • Fixed scaling failures when the database contained materialized views with no data.

  • Fixed inaccurate display of scaling progress.

  • Fixed query errors on replicated tables in certain scenarios.

  • Fixed a core dump when running ANALYZE on an external table with a very small amount of data.

  • Fixed the ERROR: could not find hash function for hash operator 58393736 error during SQL plan generation.

  • Fixed an error when querying the expansion_progress view after enabling the Orca optimizer.

  • Fixed deadlocks and data inconsistencies caused by concurrent delete tasks on a real-time materialized view in a non-aggregation scenario.

January 2023

V6.3.10.9

New features

FeatureDescriptionReferences
Partitioned tablesSubpartitions can be renamed. Subpartition names can be specified during partitioning. Supports DETACH and ATTACH commands for partitioned tables.Table partitioning
Instance scalingV6.0 instances in elastic storage mode now support reducing the number of compute nodes (scale-in).Change compute node configurations
Sample datasetsProvides sample datasets so you can quickly try out or test AnalyticDB for PostgreSQL instances.Manage sample datasets
Real-time materialized viewsSupports UNION ALL and FROM subquery syntax.Real-time materialized views

Improvements

FeatureDescriptionReferences
Real-time materialized viewsOptimizes OUTER JOIN performance.Real-time materialized views
Column-oriented partitioned tablesImproves execution speed of ALTER TABLE ADD COLUMN.
Ganos extensionUpgraded to version 5.1.Ganos spatiotemporal engine extension
Diagnostics and optimizationUses statistics when diagnosing data bloat, data skew, and indexes to reduce diagnosis time.Data bloat, data skew, and index statistics
OptimizerAdjusts the default value of join_collapse_limit to 10 to reduce high memory usage and long execution times during multi-table JOINs.

Bug fixes

  • Fixed a potential integer overflow in the intelligent diagnosis feature by changing the table size column data type from integer to bigint.

  • Fixed the tuple already updated by self error when updating a distribution key column in a partitioned table.

  • Fixed coordinator nodes failing to reclaim writer gangs, which could lead to high memory usage and out-of-memory (OOM) errors on compute nodes in high-concurrency scenarios.

  • Fixed incorrect INDEX SCAN results on column-oriented tables.

  • Fixed an error caused by using an incorrect snapshot when adding an auxiliary table to an AOCO table.

  • Fixed index bloat and non-repeatable reads on append-optimized (AO) and AOCO tables.

  • Fixed a Nested Loop Join failing to correctly select a materialization node.