Chapter 2. Architecture

The Postgres Pro AXE architecture is shown in the diagram below.

The solution consists of the following two components:

  • Postgres Pro DBMS

    The database management system that stores the data in heap tables and provides role-based access control to manage privileges on metadata catalog objects. The Postgres Pro DBMS serves as a single entry point for accessing the analytics engine and for performing data operations.

  • pgpro_axe

    The extension that provides the columnar-vectorized analytics engine for processing queries to the data stored in Parquet files.

    The analytics engine creates query plans based on the features of the Parquet storage format, including internal statistics and bloom filters, uses vector computations at the CPU level (SIMD instructions) for fast analytical query execution, and provides the metadata catalog for analytical tables.

    With this engine, you can process both OLAP and OLTP workloads at the same time, joining the data from heap tables and columnar sources within one analytical query.

Solution components operate on the following main objects:

  • Metadata catalog

    A set of metadata tables that organize the data from Parquet files into analytical tables. Metadata tables allow the analytics engine to determine the contents of Parquet files without opening them, which improves query performance and simplifies scaling.

    The metadata catalog enables compatible BI systems to access data in accordance with the open DuckLake specification. It guarantees atomicity, consistency, isolation, and durability (ACID) for data operations and maintains metadata consistency under concurrent access.

    Metadata tables are stored as heap tables in the Postgres Pro DBMS.

  • Heap tables

    Standard Postgres Pro tables that store the data as row-based files in the PGDATA directory. Heap tables are used for reference data and data that requires frequent modifications.

    Heap tables are managed by the Postgres Pro DBMS.

  • Analytical tables

    Logical objects that represent Parquet files in the metadata catalog, making the data available for queries. Access to the data is managed through privileges on analytical tables.

    Analytical tables are the key Postgres Pro AXE objects managed by the analytics engine.

  • Snapshots

    Each update of a metadata catalog object results in a snapshot that records the object state at a specific point in time. Snapshots allow restoring metadata catalog objects to any recorded state.

    Snapshots are managed by the analytics engine.

The diagram below shows how Postgres Pro AXE processes SQL queries.

FAQ