E.4. Postgres Pro Standard 18.3.1 #

Дата: 2026-03-13

E.4.1. Обзор #

Этот выпуск основан на PostgreSQL 18.3 и Postgres Pro Standard 18.1.1. Все усовершенствования, унаследованные от PostgreSQL 18.3, перечислены в Замечаниях к выпуску PostgreSQL 18.3. Другие важные изменения и улучшения перечислены ниже:

  • Реализована возможность для оптимизатора упрощать конструкции NOT NOT выражение до выражение в связанных подзапросах, тем самым позволяя «подтягивать» эти подзапросы в основной план запроса и улучшать производительность.

  • Реализована возможность для оптимизатора добавлять узлы плана Index Only Scan ниже узлов Append, которые генерируются для предложений OR, если для параметра enable_appendorpath установлено значение on. Это позволяет создавать более эффективные планы запросов и улучшать производительность.

  • Добавлены следующие изменения в реализацию crash_info:

    • Изменён формат имени выходных файлов crash_info, в котором теперь указывается дата и время с точностью до микросекунд.

    • Исправлена ошибка, которая могла возникать при попытке записать текст запроса в выходные файлы crash_info.

  • Исправлена ошибка в механизме параллельного выполнения запросов с участием временных таблиц. Ранее на диск сбрасывались только страницы самой временной таблицы, без учёта связанных страниц (страниц индексов, TOAST-таблиц и т.д.). Теперь перед выполнением плана или подплана в параллельном режиме сбрасываются страницы всех временных отношений. Может быть полезно для 1C.

  • Исправлена ошибка, которая могла возникать во время сбора статистики прерывания очистки для отношений и индексов, разделяемых всеми базами данных в кластере. Количество прерываний параллельной очистки теперь также учитывается в статистике.

  • Исправлена ошибка, которая приводила к сбою daterange_inclusive при обработке пустых диапазонов.

  • Добавлена поддержка SUSE Linux Enterprise Server (SLES) 16.

  • Добавлено расширение pgpro_anonymizer, позволяющее маскировать или заменять конфиденциальные коммерческие данные или информацию, по которой можно установить личность, в базе данных Postgres Pro. Ранее оно было доступно только в составе Postgres Pro Enterprise.

  • Добавлена утилита pgpro_datactl, включающая команду estimate для оценки коэффициентов сжатия различными алгоритмами.

  • Добавлена утилита pgpro_scout для обнаружения чувствительной (конфиденциальной) информации в базе данных. Задача утилиты — провести разведку данных на предмет наличия такой информации и привести примеры.

  • Устранена утечка памяти в расширении auto_dump.

  • Доработан модуль aqo. Включены следующие исправления и усовершенствования:

    • Оптимизирован механизм обучения aqo. Теперь aqo игнорирует узлы плана, которые не влияют на оценку количества строк, например узлы Materialized и Sort. Эти игнорируемые узлы больше не пишут детали aqo в вывод команды EXPLAIN и не добавляются в статистику aqo.

    • Устранена утечка памяти во время восстановления данных на физических репликах.

    • Устранена проблема, из-за которой модуль aqo не обучался на узлах плана Group.

    • Устранена проблема, из-за которой модуль aqo не различал подзапросы друг от друга, что приводило к некорректному вычислению статистики обучения для родительских узлов плана.

  • Доработан модуль pgpro_bindump. Включены следующие исправления:

    • Исправлены сбои резервного копирования, вызванные ошибочным включением нежурналируемых таблиц и временных табличных пространств. Ранее, если такие файлы удалялись в процессе создания резервной копии, pg_probackup3 считал их потерянными и прерывал операцию.

    • Исправлено некорректное определение редакции Postgres Pro в режиме источника данных PRO для Shardman.

  • pgbouncer обновлён до версии 1.25.1 для всех ОС, кроме Альт СП 8, для которой продолжает поставляться pgbouncer 1.24.0.

  • Доработано расширение pg_proaudit. Включены следующие усовершенствования:

    • Добавлен параметр конфигурации pg_proaudit.log_rows, который включает или отключает регистрацию количества строк, затронутых SQL-командой.

    • Добавлено новое поле в журнал событий: продолжительность подключения. Теперь записи о событиях DISCONNECT содержат общую длительность подключения наряду с другими параметрами подключения.

  • Приложение pg_probackup обновлено до версии 2.8.13, в которой добавлена новая функциональность, улучшена производительность и исправлены некоторые ошибки:

    • Добавлены контроль целостности и проверка параметра recovery-target-name в архиве WAL при выполнении восстановления. Теперь предотвращаются ситуации, когда кластер Postgres Pro не может запуститься из-за недостижимости целевой точки восстановления. Если именованная точка восстановления была создана до последней резервной копии, процесс восстановления теперь корректно проверяет её существование.

    • Добавлена возможность передавать параметры удалённому агенту в формате файла конфигурации, что повышает гибкость при работе с агентами резервного копирования в распределённых средах.

    • Реализована совместимость с расширением pgpro_cpumeter. Файл pgpro_cpumeter.stat теперь добавляется в список исключений при выполнении резервного копирования.

    • Устранена проблема, из-за которой флаг --skip-block-validation игнорировался при выполнении резервного копирования. Ранее это приводило к ошибке, если в кластере содержались страницы с некорректными контрольными суммами в заголовках. Это критически важно при включении контрольных сумм в старых кластерах, где уже могут существовать проблемы с контрольными суммами. Кроме того, теперь при использовании --skip-block-validation выводится предупреждение.

    • Улучшен механизм передачи статуса резервного копирования. Статус резервной копии теперь меняется на DONE до этапа проверки. Метаданные резервной копии записываются дважды: до проверки и по завершении резервного копирования. Команда show теперь отображает более точный статус резервной копии во время длительных проверок.

    • Устранена проблема, которая могла приводить к аварийному завершению работы, если файл backup_content.control был удалён перед выполнением резервного копирования в режиме DELTA.

  • Утилита pgpro_controldata обновлена до версии 18.2.0.

  • Доработано расширение pgpro_cpumeter, чтобы удалить предупреждение, возникавшее при пустом значении machine_id.

  • Доработано расширение pgpro_stats. Включены следующие исправления и усовершенствования:

    • Восстановлена возможность агрегирования статистики по сеансам, которая ранее была удалена как неиспользуемая. Будет ли агрегироваться статистика по сеансам, определяет параметр конфигурации pgpro_stats.track_sessions.

    • Улучшено поведение функций трассировки сеансов. Теперь функции pgpro_stats_trace_insert и pgpro_stats_trace_update завершаются ошибкой, если в передаваемой последовательности пар ключ-значение какой-либо атрибут фильтра встречается несколько раз. Если функции pgpro_stats_trace_update передаётся неправильный аргумент, изменения фильтра более не происходят. Функция pgpro_stats_trace_show теперь возвращает в точности те значения атрибутов explain*, которые были заданы для фильтра.

    • Добавлено исправление, благодаря которому удаётся избежать сбоя, если две или более константы имеют одно и то же расположение в тексте SQL-оператора.

  • Доработана утилита pgpro_tune. Включены следующие изменения:

    • В конфигурацию пресета pgpro_tune default.tune добавлены параметры autovacuum_vacuum_scale_factor и autovacuum_vacuum_insert_scale_factor.

    • Исправлена ошибка, из-за которой утилита pgpro_tune не обрабатывала имена пресетов с пробелами при указании пресета в переменной окружения initdb PGPRO_TUNE. Теперь при ошибке pgpro_tune команда initdb также выводит ошибку.

    • Исправлен пресет default.tune, который теперь корректно отображает порядок значений параметров effective_io_concurrency и random_page_cost в зависимости от типа накопителя.

  • Доработан модуль rum. Включены следующие изменения:

    • Добавлены функции, которые позволяют исследовать все типы страниц индекса RUM на низком уровне.

    • Исправлена ошибка, из-за которой при сканировании индексов RUM по нескольким столбцам возвращались некорректные результаты. Ошибка возникала, когда при создании индекса для одного из столбцов для параметра order_by_attach задавалось значение true, а запрос включал условия по нескольким столбцам индекса, в том числе по столбцу с order_by_attach.

E.4.2. Миграция на версию 18.3.1 #

Если вы производите обновление выпуска Postgres Pro Standard, базирующегося на той же основной версии PostgreSQL, достаточно просто установить новый выпуск в текущий каталог инсталляции.

Версия ABI может измениться в корректирующем выпуске Postgres Pro. В таком случае при попытке запустить расширение возникает ошибка ABI mismatch (Несоответствие ABI), поэтому обязательно установите новую версию расширения, поставляемую с новым выпуском Postgres Pro, или перекомпилируйте стороннее расширение, чтобы использовать его с текущей версией Postgres Pro.

Для перехода с PostgreSQL или выпуска Postgres Pro Standard, базирующегося на предыдущей основной версии PostgreSQL, обратитесь к инструкциям в Замечаниях к выпуску Postgres Pro Standard 18.0.1.

E.4. Postgres Pro Standard 18.3.1 #

Date: 2026-03-13

E.4.1. Overview #

This release is based on PostgreSQL 18.3 and Postgres Pro Standard 18.1.1. All improvements inherited from PostgreSQL 18.3 are listed in PostgreSQL 18.3 Release Notes. Other major changes and enhancements are as follows:

  • Implemented the ability for the optimizer to simplify NOT NOT expression constructions to expression in correlated subqueries, which allows “pulling up” these subqueries into the main query plan and improving performance.

  • Implemented the ability for the optimizer to add Index Only Scan plan nodes below Append nodes that are generated for OR clauses if the enable_appendorpath parameter is set to on. This allows producing more efficient query plans and improving performance.

  • Introduced the following changes to the implementation of crash_info:

    • Changed the name format of crash_info output files to specify date and time with microseconds.

    • Fixed a bug that could occur when trying to write a query text to crash_info output files.

  • Fixed an issue with parallel query execution mechanism for queries that involve at least one temporary table. Previously, only temporary table pages were flushed to the disk, excluding other related pages (index pages, TOAST table pages, etc.). Now, before executing any plan or subplan in parallel mode, all temporary relations are also flushed. This may be useful for 1C.

  • Fixed an issue that could occur during collection of vacuum interruption statistics for relations and indexes shared across all databases in a cluster. Also, the number of parallel vacuum interrupts is now taken into account in the statistics.

  • Fixed a bug that caused daterange_inclusive to fail when processing empty ranges.

  • Added support for SUSE Linux Enterprise Server (SLES) 16.

  • Added the pgpro_anonymizer extension that provides the ability to mask or replace personally identifiable information or commercially sensitive data from a Postgres Pro database. Previously, pgpro_anonymizer was only available with Postgres Pro Enterprise.

  • Added pgpro_datactl, featuring the estimate command that evaluates compression ratios across different algorithms.

  • Added the pgpro_scout utility to detect sensitive (confidential) information in your database. The utility performs data intelligence to determine whether such information exists and show sensitive data samples.

  • Fixed a memory leak in the auto_dump extension.

  • Updated aqo to provide the following enhancements and bug fixes:

    • Optimized the mechanism of aqo learning. Now aqo ignores plan nodes that do not affect cardinality estimation, for instance Materialized and Sort nodes. These ignored nodes no longer write aqo details in the EXPLAIN output and are not added to aqo statistics.

    • Fixed a memory leak during data recovery on physical replicas.

    • Fixed an issue where aqo did not learn on Group plan nodes.

    • Fixed an issue where aqo did not distinguish subqueries from each other, which resulted in incorrect calculation of learning statistics for parent plan nodes.

  • Updated pgpro_bindump to provide the following bugfixes:

    • Fixed backup failures due to erroneous inclusion of unlogged tables and temporary tablespaces. Previously, if such files were deleted during the backup process, pg_probackup3 would treat them as missing and abort the operation.

    • Fixed incorrect Postgres Pro edition detection in the PRO data source mode for Shardman.

  • Upgraded pgbouncer to version 1.25.1 for each OS, except ALT SP 8, for which pgbouncer 1.24.0 is still shipped.

  • Updated pg_proaudit to provide the following enhancements:

    • Added the pg_proaudit.log_rows configuration parameter that enables or disables logging of the number of rows affected by an SQL command.

    • Added a new event log field: connection duration. DISCONNECT events now contain the total connection duration alongside other connection parameters.

  • Upgraded pg_probackup to version 2.8.13, which provides the following new features, optimizations, and bug fixes:

    • Added verification and validation of recovery-target-name in the WAL archive during recovery. This prevents situations where the Postgres Pro cluster fails to start due to an unreachable recovery target. If a named recovery target was created before the last backup, the recovery process now correctly checks its existence.

    • Added the ability to pass parameters to a remote agent in a configuration file format to improve flexibility when working with backup agents in distributed environments.

    • Implemented compatibility with the pgpro_cpumeter extension. The pgpro_cpumeter.stat file is now added to the exclusion list during backup.

    • Fixed an issue where the --skip-block-validation flag was being ignored during backup. Previously, this resulted in an error if the cluster contained pages with invalid checksums in their headers. This is critically important when enabling checksums in older clusters that may have pre-existing checksum issues. Also, a warning is now displayed when --skip-block-validation is used.

    • Improved backup status reporting. The backup status is now set to DONE before the validation phase. Backup metadata is written twice: before validation and after backup completion. The show command now displays a more accurate backup status during long-running validation checks.

    • Fixed an issue that could result in a crash if the backup_content.control file was deleted before the DELTA backup.

  • Upgraded pgpro_controldata to version 18.2.0.

  • Updated pgpro_cpumeter to remove the warning message provoked by the empty machine_id value.

  • Updated pgpro_stats to provide the following enhancements and bug fixes:

    • Restored the possibility to track aggregate statistics for sessions, which had previously been removed as unused. Whether aggregate statistics for the sessions are tracked is controlled by the pgpro_stats.track_sessions configuration parameter.

    • Improved the behavior of session-tracing functions. The pgpro_stats_trace_insert and pgpro_stats_trace_update functions now fail with an error if some filter attribute is listed in the passed sequence of key-value pairs more than once. If a wrong argument is passed to the pgpro_stats_trace_update function, the filter no longer gets updated. The pgpro_stats_trace_show function now returns exactly the values of explain* attributes that were specified for the filter.

    • Fixed an issue to avoid crash when two or more constants are marked as having the same location in the SQL statement text.

  • Updated pgpro_tune to provide the following changes:

    • Added the autovacuum_vacuum_scale_factor and autovacuum_vacuum_insert_scale_factor parameters to the pgpro_tune default.tune preset configuration.

    • Fixed an issue with pgpro_tune not being able to process preset names with whitespaces when specifying a preset in the initdb PGPRO_TUNE environment variable. Now if pgpro_tune fails, initdb also fails.

    • Fixed the default.tune preset, which now correctly displays the order of effective_io_concurrency and random_page_cost parameter values depending on the drive type.

  • Updated rum to provide the following changes:

    • Added functions that allow inspecting all types of RUM index pages at a low level.

    • Fixed a bug that caused scanning of multi-column RUM indexes to return incorrect results. This happened when the index was created with order_by_attach set to true for one of the columns, and a query specified conditions for several index columns, including the one with order_by_attach.

E.4.2. Migration to Version 18.3.1 #

If you are upgrading from Postgres Pro Standard based on the same PostgreSQL major version, it is enough to install the new version into your current installation directory.

ABI versions may change between minor releases of Postgres Pro. If this is the case, and you see the ABI mismatch error when trying to run your extension, make sure to install a new version of the extension supplied with a new release of Postgres Pro, or recompile your third-party extension to be able to use it with the current version of Postgres Pro.

To migrate from PostgreSQL or a Postgres Pro Standard release based on a previous PostgreSQL major version, see the instructions in Postgres Pro Standard 18.0.1 Release Notes.

FAQ