Upgrading to PostgreSQL 11
This topic contains the steps to upgrade your Red Hat Enterprise Linux database to PostgreSQL 11.
If you are migrating to PostgreSQL 11 from an older version you will need to check the encoding of the existing database first and if it differs from the default UTF8 encoding you will need to change the
initdb command accordingly.
![]() |
Note These are RHEL 7 commands. RHEL 6 users must translate the service commands into the old form.
|
![]() |
Note If you have configured an alternative PostgreSQL data directory then you will also need to use that alternative data directory in the
initdb command.
# With alternative data directory sudo -u postgres /usr/pgsql-11/bin/initdb --locale C --encoding SQL_ASCII /path/to/alternative/pgsql/data |