Приложение B. Отличия от Postgres Pro AXE 1.x

В этом приложении описываются изменения в хранимых процедурах между Postgres Pro AXE 1.x и 2.x. Операции на объектах каталога метаданных, которые ранее выполнялись с помощью хранимых процедур, теперь соотносятся со стандартными SQL-командами и новыми хранимыми процедурами.

Хранимые процедуры предыдущего выпуска остаются доступными для обратной совместимости. Чтобы использовать их, выполните хранимую процедуру axe.create_metastore_aliases. Некоторые хранимые процедуры удалены и не могут быть выполнены.

За подробной информацией об обновлении Postgres Pro AXE обратитесь к Разделу 11.1.

В таблице ниже приведены хранимые процедуры предыдущего выпуска, их замены, а также указано, доступны ли ещё предыдущие хранимые процедуры.

Примечание

Предыдущие хранимые процедуры поддерживаются до 31 декабря 2027 года. Рекомендуется перейти на новые SQL-команды и хранимые процедуры до этой даты.

Postgres Pro AXE 1.x

Postgres Pro AXE 2.x

Доступность в 2.x

metastore.add_storage

Хранилище по умолчанию можно указать с помощью параметра конфигурации axe.data_storage_location.

Пользовательские хранилища можно создать с помощью хранимой процедуры axe.create_storage

Доступна, но параметр tmp_uri игнорируется

metastore.remove_storage

Хранимая процедура axe.drop_storage

Доступна

metastore.add_table

Команда CREATE TABLE с предложением USING axe, при необходимости с предложением AS SELECT ... WITH NO DATA

Доступна

metastore.remove_table

Команда DROP TABLE с необязательным предложением CASCADE

Доступна, но параметр force игнорируется и больше не предотвращает удаление

metastore.rename_table

Команда ALTER TABLE с предложением RENAME TO

Доступна, но новое имя не может содержать имя схемы

metastore.rename_column

Команда ALTER TABLE с предложением RENAME COLUMN

Доступна

metastore.add_column

Команда ALTER TABLE с предложением ADD COLUMN

Доступна

metastore.change_column_type

Команда ALTER TABLE с предложениями ALTER COLUMN и TYPE

Доступна

metastore.delete_column

Команда ALTER TABLE с предложением DROP COLUMN

Доступна

metastore.add_schema

Команда CREATE SCHEMA

Доступна

metastore.remove_schema

Команда DROP SCHEMA

Доступна

metastore.copy_table

Команда INSERT INTO с предложениями SELECT и FROM

Доступна, но параметр json_name удалён. Параметры хранения Parquet-файлов теперь можно настроить с помощью хранимых процедур axe.set_option_*

metastore.add_files

Команда COPY с предложением FROM

Доступна, но теперь третий параметр указывает имя общего каталога вместо пути к JSON-файлу с параметрами хранения Parquet-файлов

metastore.add_folder

Хранимая процедура axe.create_folder

Доступна

metastore.remove_folder

Хранимая процедура axe.drop_folder

Доступна

metastore.mgrant

Команда GRANT для аналитических таблиц или хранимая процедура axe.grant для хранилищ и общих каталогов

Доступна

metastore.mrevoke

Команда REVOKE для аналитических таблиц или хранимая процедура axe.revoke для хранилищ и общих каталогов

Доступна

metastore.set_log_statement

Хранимая процедура axe.set_log_statement

Доступна

metastore.create_view

Представления для аналитических таблиц больше не требуются, так как запросы выполняются напрямую к аналитическим таблицам

Удалена

metastore.test_show_view_sql

Представления для аналитических таблиц больше не требуются, так как запросы выполняются напрямую к аналитическим таблицам

Удалена

metastore.cleanup

Хранимые процедуры axe.expire_snapshots, axe.cleanup_old_files и axe.delete_orphaned_files

Удалена

metastore.expire_snapshot_on_time

Хранимая процедура axe.expire_snapshots с параметром аналитического механизма expire_older_than

Удалена

metastore.expire_snapshot_on_ids

Хранимая процедура axe.expire_snapshots

Удалена

metastore.delete_expired_files

Хранимая процедура axe.cleanup_old_files с параметром аналитического механизма delete_older_than

Удалена

metastore.define_catalog_connection

Параметры подключения и учётные данные для подключения к серверу с каталогом метаданных хранятся в секрете каталога метаданных, созданном с помощью хранимой процедуры axe.create_catalog_secret.

Подключение Postgres Pro AXE к каталогу метаданных с использованием секрета управляется параметром конфигурации axe.use_catalog_secret

Удалена

metastore.init

Каталог метаданных инициализируется автоматически при выполнении первого аналитического запроса или хранимой процедуры

Удалена

Appendix B. Differences from Postgres Pro AXE 1.x

This appendix describes the changes in stored procedures between Postgres Pro AXE 1.x and 2.x. Operations on metadata catalog objects that previously required stored procedures now map to standard SQL commands and new stored procedures.

For backward compatibility, the stored procedures of the previous release remain available. To use them, execute the axe.create_metastore_aliases stored procedure. Certain stored procedures are deleted and cannot be executed.

For more information about updating Postgres Pro AXE, refer to Section 11.1.

The table below lists the stored procedures of the previous release, their replacements, and shows whether the previous stored procedures are still available.

Note

The previous stored procedures are supported until December 31, 2027. It is recommended to migrate to the new SQL commands and stored procedures before that date.

Postgres Pro AXE 1.x

Postgres Pro AXE 2.x

Availability in 2.x

metastore.add_storage

The default storage can be specified with the axe.data_storage_location configuration parameter.

Custom storages can be created with the axe.create_storage stored procedure

Available, but the tmp_uri parameter is ignored

metastore.remove_storage

The axe.drop_storage stored procedure

Available

metastore.add_table

The CREATE TABLE command with the USING axe clause, optionally with the AS SELECT ... WITH NO DATA clause

Available

metastore.remove_table

The DROP TABLE command with the optional CASCADE clause

Available, but the force parameter is ignored and no longer prevents deletion

metastore.rename_table

The ALTER TABLE command with the RENAME TO clause

Available, but the new name cannot contain a schema name

metastore.rename_column

The ALTER TABLE command with the RENAME COLUMN clause

Available

metastore.add_column

The ALTER TABLE command with the ADD COLUMN clause

Available

metastore.change_column_type

The ALTER TABLE command with the ALTER COLUMN and TYPE clauses

Available

metastore.delete_column

The ALTER TABLE command with the DROP COLUMN clause

Available

metastore.add_schema

The CREATE SCHEMA command

Available

metastore.remove_schema

The DROP SCHEMA command

Available

metastore.copy_table

The INSERT INTO command with the SELECT and FROM clauses

Available, but the json_name parameter is deleted. Parquet file storage parameters can now be configured using the axe.set_option_* stored procedures

metastore.add_files

The COPY command with the FROM clause

Available, but now the third parameter specifies the name of a shared directory instead of the path to the JSON file with Parquet file storage parameters

metastore.add_folder

The axe.create_folder stored procedure

Available

metastore.remove_folder

The axe.drop_folder stored procedure

Available

metastore.mgrant

The GRANT command for analytical tables or the axe.grant stored procedure for storages and shared directories

Available

metastore.mrevoke

The REVOKE command for analytical tables or the axe.revoke stored procedure for storages and shared directories

Available

metastore.set_log_statement

The axe.set_log_statement stored procedure

Available

metastore.create_view

Views for analytical tables are no longer required, since analytical tables are queried directly

Deleted

metastore.test_show_view_sql

Views for analytical tables are no longer required, since analytical tables are queried directly

Deleted

metastore.cleanup

The axe.expire_snapshots, axe.cleanup_old_files, and axe.delete_orphaned_files stored procedures

Deleted

metastore.expire_snapshot_on_time

The axe.expire_snapshots stored procedure with the expire_older_than analytics engine option

Deleted

metastore.expire_snapshot_on_ids

The axe.expire_snapshots stored procedure

Deleted

metastore.delete_expired_files

The axe.cleanup_old_files stored procedure with the delete_older_than analytics engine option

Deleted

metastore.define_catalog_connection

Connection parameters and credentials for connecting to the server with the metadata catalog are stored in the metadata catalog secret, created with the axe.create_catalog_secret stored procedure.

Whether Postgres Pro AXE connects to the metadata catalog using the secret is controlled by the axe.use_catalog_secret configuration parameter

Deleted

metastore.init

The metadata catalog is initialized automatically when the first analytical query or stored procedure is executed

Deleted

FAQ