## E.21. Postgres Pro 9.5.8.1

Release date: 2017-08-14

### E.21.1. Overview

This release is based on PostgreSQL 9.5.8 and Postgres Pro 9.5.7.1.

Major enhancements over Postgres Pro 9.5.7.1 include:

- Updated pg_pathman module to version 1.4.2. (See Section F.40 and Section F.40.1.1.) As compared to version 1.4, the following enhancements were introduced:

  - Added support for partitioning by expression, for both range and hash partitioning.

  - Enabled manual creation of range partitions by composite key.

  - Enabled range partitioning by text key.

  - Multiple bug fixes and improvements. For a full list of changes, see pg_pathman Wiki.

- Added distribution for Ubuntu 17.10.

- Fixed `ALTER COLUMN` operation for tables with indexes.

### E.21.2. Migration to Version 9.5.8.1

A dump/restore is not required for those running 9.5.7.1.

However, if you are upgrading from a version earlier than 9.5.x.x or vanilla PostgreSQL 9.5.x, some catalog changes should be applied.

If you use binary packages, and your database is in the default location, this upgrade should be performed automatically. If you've compiled Postgres Pro from source or create your database in a non-default location, running `initdb` manually, you should run `pgpro_upgrade` script provided in this distribution.

Before running the script, you should stop postgres service. Script should be run on behalf of the user owning the database (typically postgres) and PGDATA environment variable should be set to the directory where database resides.