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
| Feature | Description |
|---|---|
| Optimizer | Optimizes multi-table JOINs to prevent significant increases in query time and memory usage when the join_collapse_limit parameter is increased. |
| Optimizer | Optimizes 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 PARTITIONandVACUUM FULL pg_indexthat could cause instance unavailability.Fixed a core dump in the tdfunc extension caused by improper NULL value handling in the
NVLfunction.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 planerror 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
DISTINCTclause.
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_joinerror in the planner.Fixed a memory leak in the Global Deadlock Detector (GDD).
Fixed queries being stuck or delayed when
REFRESH MATERIALIZED VIEWwas executed on non-materialized views.Fixed an unexpected primary coordinator node switchover caused by a prolonged
Syncdatadiroperation.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
DISTINCTclause.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, andvector_dot.
For more information, see Vector search.
Other new features
| Feature | Description | References |
|---|---|---|
| pldbgapi extension | Enables debugging of PL/pgSQL functions. | pldbgapi |
| Dynamic data masking | Applies 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 views | Adds a sample dataset for real-time data warehousing to support testing of real-time data warehouses built on real-time materialized views. | — |
Improvements
| Feature | Description | References |
|---|---|---|
| Optimizer | Significantly reduces memory usage on coordinator and compute nodes in certain scenarios. | — |
| Real-time materialized views | Improves performance for complex queries and OUTER JOIN scenarios. | Real-time materialized views |
| Vector search | Supports 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 group | Adds 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
INSERToperation on a real-time materialized view created withGROUP BYandUNION ALLclauses.Fixed the
cache lookup failed for extension 18713194error when executingDROP TABLE.Fixed the FastANN vector extension failing to install in the
pg_catalogschema.Fixed the
reader could not find writer proc entryerror 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_joinerror in the planner.Fixed a core dump on
Jsonbdata caused by an incorrect plan for a Lateral Join.Fixed residual temporary tables remaining on the coordinator node.
Fixed the
MERGEoperation 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: 351error when generating a plan for aMINorMAXoperation on a system table.
September 2023
V6.3.11.3
New features
| Feature | Description | References |
|---|---|---|
| Real-time materialized views | Adds monitoring capabilities for real-time materialized views. | Real-time materialized views |
| Cross-database query | Supports federated queries across different instances using a foreign data wrapper (FDW), ensuring data timeliness and reducing data redundancy. | Cross-database queries |
| Cross-instance query | Enables real-time interactive queries between AnalyticDB for PostgreSQL instances for federated analytics. | Cross-instance queries |
Improvements
| Feature | Description |
|---|---|
| Optimizer | Enables in-list query optimization by default. |
| Oracle compatibility | Supports 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
WHEREclause 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
EXISTSclause 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-groupcolserror when generating a plan for an aggregate operation on a table with a primary key.
August 2023
V6.3.11.2
New features
| Feature | Description | References |
|---|---|---|
| Vector search | Adds 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 |
| Optimizer | The Orca optimizer now supports Dynamic Join Filter. Supports converting an in-list subquery into a semi-join. | Dynamic Join Filter |
| Real-time materialized views | Append-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 data | Supports storing infrequently accessed data in Object Storage Service (OSS) to reduce storage costs. | Tiered storage of hot and cold data |
Improvements
| Feature | Description |
|---|---|
| Vector search | Improves calculation speed for Inner Product (IP) and cosine distances. Optimizes kernel parameters for the vector search engine. |
| Optimizer | Improves 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 views | Improves performance for complex queries and OUTER JOIN scenarios. |
V6.3.10.20
New features
| Feature | Description | References |
|---|---|---|
| Vector search | Adds 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-groupcolserror 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
LIMITclause.
July 2023
V6.3.10.16
New features
| Feature | Description | References |
|---|---|---|
| Real-time materialized views | Supports 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
| Feature | Description | References |
|---|---|---|
| Real-time materialized views | Optimizes naming of nested materialized views to prevent errors from excessively long names or subquery aliases. | — |
| Optimizer | Reduces Orca optimizer planning time for tables with many subpartitions. | — |
| Orafce extension | Backward compatible with version 3.25. | Supported extensions |
| Query Cache | Expands 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 executedDROP TABLE.Fixed the Orca optimizer not supporting aggregate functions on multiple
DISTINCTobjects.Fixed the
reader could not find writer proc entryerror 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 theRETURNINGclause containedCtid.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
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
| Feature | Description | References |
|---|---|---|
| Real-time materialized views | Supports FROM subqueries. | Real-time materialized views |
Improvements
| Feature | Description | References |
|---|---|---|
| Ganos extension | Upgraded 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
Automergeholding 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 committederror 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_rewindreplication of WAL (Xlog) being affected by thestatement_timeoutparameter.Fixed excessively long Orca optimizer planning time for tables with many subpartitions.
March 2023
V6.3.10.12
New features
| Feature | Description | References |
|---|---|---|
| Real-time materialized views | Supports multi-column PARTITION BY clauses. | Real-time materialized views |
Improvements
| Feature | Description | References |
|---|---|---|
| Orafce extension | Upgraded to version 3.25.0. | Use the Orafce extension |
Bug fixes
Fixed a potential memory leak when using
INSERT ON CONFLICT UPDATEorCOPY 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
ANALYZEon an external table with a very small amount of data.Fixed the
ERROR: could not find hash function for hash operator 58393736error during SQL plan generation.Fixed an error when querying the
expansion_progressview 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
| Feature | Description | References |
|---|---|---|
| Partitioned tables | Subpartitions can be renamed. Subpartition names can be specified during partitioning. Supports DETACH and ATTACH commands for partitioned tables. | Table partitioning |
| Instance scaling | V6.0 instances in elastic storage mode now support reducing the number of compute nodes (scale-in). | Change compute node configurations |
| Sample datasets | Provides sample datasets so you can quickly try out or test AnalyticDB for PostgreSQL instances. | Manage sample datasets |
| Real-time materialized views | Supports UNION ALL and FROM subquery syntax. | Real-time materialized views |
Improvements
| Feature | Description | References |
|---|---|---|
| Real-time materialized views | Optimizes OUTER JOIN performance. | Real-time materialized views |
| Column-oriented partitioned tables | Improves execution speed of ALTER TABLE ADD COLUMN. | — |
| Ganos extension | Upgraded to version 5.1. | Ganos spatiotemporal engine extension |
| Diagnostics and optimization | Uses statistics when diagnosing data bloat, data skew, and indexes to reduce diagnosis time. | Data bloat, data skew, and index statistics |
| Optimizer | Adjusts 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 selferror 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 SCANresults 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.