24.1. Data Inlining (axe.flush_inlined_data) #
Data inlining allows Postgres Pro AXE to store a small number of rows inserted into or deleted from an analytical table in the metadata catalog using heap tables that are automatically created for each analytical table, instead of creating new Parquet files.
Inlined data is accessible to analytical queries the same way as data stored in Parquet files.
You can specify the maximum number of rows inserted or deleted from an analytical table that can be stored using data inlining with the data_inlining_row_limit analytics engine option.
The axe.flush_inlined_data stored procedure writes inlined data to new Parquet files.
Required privileges: Superuser or the Postgres Pro AXE administrator.
For more information about access management, refer to Chapter 12.
Execute one of the following commands on the Postgres Pro AXE server:
SELECT axe.flush_inlined_data(schema_name => 'schema_name'[, table_name => 'table_name']);
Where:
schema_name: The name of the schema containing the analytical table.Optional parameter. If not specified, inlined data is flushed for all analytical tables.
table_name: The name of the analytical table whose inlined data must be flushed. If specified withoutschema_name, thepublicschema is used.Optional parameter.
Postgres Pro AXE will return the number of analytical tables whose inlined data was flushed and the total number of rows flushed.
Example 24.1. Flushing Inlined Data
To flush inlined data for all analytical tables:
SELECT axe.flush_inlined_data();
To flush inlined data for all analytical tables in a schema:
SELECT axe.flush_inlined_data(schema_name => 'axe_schema');
To flush inlined data for an analytical table:
SELECT axe.flush_inlined_data(schema_name => 'axe_schema', table_name => 'axe_table');