Update from 4.4.9 to 5.x "postgresql94, old packages"

for_postgresql94:
WARNING: PostgreSQL-9.4 is no longer supported by UCS-5.0 and must be migrated to
a newer version of PostgreSQL. See Updating from PostgreSQL 9.4 to PostgreSQL 9.6 for
more details.

Did you follow the link describing how to update postgres?