G.7. Reading Iceberg Table Snapshots (iceberg_snapshots) #
Before reading Iceberg table snapshots, configure the Iceberg extension.
Required privileges: Superuser or the Postgres Pro AXE administrator.
For more information about access management, refer to Chapter 17.
Execute the following command on the Postgres Pro AXE server:
SELECT * FROM iceberg_snapshots('path', optional_parameters);
Where:
path: The path to the Iceberg table from which snapshots must be read.optional_parameters: The optional parameters, specified in theparameter := valueformat.Available parameters:
metadata_compression_codec: The compression codec to use when reading metadata files.Default value:
''— no compression codec is used.version: The version of the Iceberg table metadata file.Default value:
'?'— the version is determined automatically.version_name_format: The format string that determines how theversionvalue is converted to the Iceberg table metadata file name.Default value:
'v%s%s.metadata.json,%s%s.metadata.json'.
Postgres Pro AXE will return rows with snapshots of the Iceberg table.
Example G.9. Reading Iceberg Table Snapshots
SELECT * FROM iceberg_snapshots('data/iceberg/table');