3
Server Versions
Major versions (9.6, 10, 11, ...)
community support for 5 years
functionality is added and modified
new version is not binary compatible with the previous one
upgrading always requires special procedures
Minor releases (16.1, 16.2, ...)
bug and security fixes only
binary compatibility is guaranteed
in most cases replacing the executables is sufficient
PostgreSQL version number consists of two components: the major version
number and the minor release number. Before version 10, the major version
number consisted of two digits (9.5, 9.6); starting with version 10, it switched
to a single digit (10, 11). The minor release number is the last digit after the
dot (for example, 2 in 16.2).
Minor releases serve exclusively to fix bugs found in the major version. They
maintain binary compatibility (on the same platform). Therefore, upgrading to
the next minor release is straightforward and is recommended as soon as it
becomes available.
A new major version introduces functional changes: some features are
added, modified, or, less frequently, removed. In this case, binary
compatibility is not maintained. PostgreSQL will refuse to work with a
database cluster if you try to connect a newer version of the executables to
an older database cluster.
Upgrading a major version requires special steps. In addition to upgrading
the database server, you may also need to update your application. The
main reasons for upgrading to a new version are the introduction of new
features and the end of support for the old version (5 years after release).
Due to the complexity of the process, it is common to skip several versions,
for example, upgrading directly from version 13 to 16, etc.