AWS has introduced a direct querying feature for Amazon Aurora PostgreSQL, allowing developers to execute standard SQL queries over data lake assets stored in Apache Iceberg and Apache Parquet formats alongside operational database tables. By embedding the DuckDB query engine directly inside Aurora PostgreSQL, the platform enables queries across both systems without moving data through separate extraction and loading pipelines.
Embedded DuckDB and Iceberg Integration
The implementation relies on DuckDB technology within Aurora PostgreSQL to execute analytical scans over external files while Aurora processes operational data. Developers can query Iceberg tables managed by the AWS Glue Data Catalog, raw Parquet files, or Iceberg datasets stored in Amazon S3 and S3 Tables. The feature also supports external catalogs compatible with the Iceberg REST Catalog protocol via Glue federation.
To reduce network traffic and latency during execution, the engine performs predicate pushdown, column pruning, and local instance caching. Developers can inspect execution metrics—including rows scanned, bytes read from S3, and cache performance—using the new aurora_analytics_stat_statements() function.
Developer Setup and Workflow Changes
The capability requires enabling the aurora_analytics extension and attaching an IAM role with the AuroraAnalytics feature to the database cluster. Foreign tables pointing to data lake files automatically infer schemas from file metadata, while an IMPORT FOREIGN SCHEMA command allows bulk table creation for entire AWS Glue database definitions.
Queries can combine live database rows—including uncommitted writes—with historical Parquet or Iceberg records using conventional PostgreSQL commands like UNION ALL or joins. For single-digit-millisecond latency requirements, teams can materialize remote datasets into standard Aurora tables using statements such as CREATE TABLE AS SELECT or MERGE INTO. Read queries over foreign tables can be offloaded to read replicas across the cluster.
Version Compatibility and Regional Availability
Direct querying is available in all commercial AWS Regions and AWS GovCloud (US) Regions. The feature is supported on Aurora PostgreSQL version 17 starting with release 17.11, as well as version 18 starting with release 18.6.
AWS imposes no added subscription fee for the extension; usage costs are determined by standard Aurora compute utilization during query execution along with Amazon S3 request fees for reading target data lake files.
AI-generated editorial illustration; not a documentary photograph.

Leave a Reply