Глава 9. Проверка развёртывания Postgres Pro AXE

В этой главе описывается, как убедиться, что Postgres Pro AXE развёрнут успешно и готов к работе, если развёртывание выполнялось в соответствии с описанием, приведённым в Главе 8.

Чтобы проверить развёртывание Postgres Pro AXE:

  1. Создайте локальное хранилище для Parquet-файлов.

    Например:

      SELECT axe.create_storage('axe_storage', 'file:///pgdata/axe_storage/');
  2. Создайте таблицу-кучу и вставьте данные в эту таблицу.

    Например:

      CREATE TABLE public.axe_heap_table (id int4, name text, price numeric(10,2), created_at timestamp);
      INSERT INTO public.axe_heap_table VALUES (1, 'Product 1', 150.99, '2026-08-09 00:01:01.75');
      INSERT INTO public.axe_heap_table VALUES (2, 'Product 2', 300.99, '2026-08-10 00:01:01.75');
  3. Создайте аналитическую таблицу из таблицы-кучи.

    Аналитические таблицы — это логические объекты, которые представляют Parquet-файлы в каталоге метаданных, делая данные доступными для запросов.

    Например:

      CREATE TABLE axe_table USING axe WITH (storage = 'axe_storage')
      AS SELECT * FROM public.axe_heap_table;
  4. Прочитайте данные из аналитической таблицы.

    Например:

      SELECT * FROM axe_table;

    Если запрос возвращает данные, Postgres Pro AXE развёрнут успешно.

  5. (Необязательно) Удалите тестовые объекты:

    1. Удалите аналитическую таблицу.

      Например:

        DROP TABLE axe_table;
    2. Удалите хранилище.

      Например:

        SELECT axe.drop_storage('axe_storage');
    3. Удалите таблицу-кучу.

      Например:

        DROP TABLE public.axe_heap_table;

Chapter 9. Checking the Postgres Pro AXE Deployment

This chapter describes how to check that Postgres Pro AXE is deployed successfully and ready for work, assuming the deployment described in Chapter 8.

To check the Postgres Pro AXE deployment:

  1. Create a local storage for Parquet files.

    For example:

      SELECT axe.create_storage('axe_storage', 'file:///pgdata/axe_storage/');
    
  2. Create a heap table and insert data into this table.

    For example:

      CREATE TABLE public.axe_heap_table (id int4, name text, price numeric(10,2), created_at timestamp);
      INSERT INTO public.axe_heap_table VALUES (1, 'Product 1', 150.99, '2026-08-09 00:01:01.75');
      INSERT INTO public.axe_heap_table VALUES (2, 'Product 2', 300.99, '2026-08-10 00:01:01.75');
    
  3. Create an analytical table from the heap table.

    Analytical tables are logical objects that represent Parquet files in the metadata catalog and make the data available for queries.

    For example:

      CREATE TABLE axe_table USING axe WITH (storage = 'axe_storage')
      AS SELECT * FROM public.axe_heap_table;
    
  4. Read the data from the analytical table.

    For example:

      SELECT * FROM axe_table;
    

    If the query returns the data, Postgres Pro AXE is deployed successfully.

  5. (Optional) Delete the test objects:

    1. Delete the analytical table.

      For example:

        DROP TABLE axe_table;
      
    2. Delete the storage.

      For example:

        SELECT axe.drop_storage('axe_storage');
      
    3. Delete the heap table.

      For example:

        DROP TABLE public.axe_heap_table;
      
FAQ