Fedora 28'de Postgres sunucusunu başlatırken şu hatayı alıyorum:
May 25 14:36:14 localhost.localdomain systemd[1]: Starting PostgreSQL database server...
May 25 14:36:14 localhost.localdomain postgresql-check-db-dir[11816]: An old version of the database format was found.
May 25 14:36:14 localhost.localdomain postgresql-check-db-dir[11816]: Use 'postgresql-setup --upgrade' to upgrade to version '10'
May 25 14:36:14 localhost.localdomain postgresql-check-db-dir[11816]: See /usr/share/doc/postgresql/README.rpm-dist for more information.
May 25 14:36:14 localhost.localdomain systemd[1]: postgresql.service: Control process exited, code=exited status=1
May 25 14:36:14 localhost.localdomain systemd[1]: postgresql.service: Failed with result 'exit-code'.
May 25 14:36:14 localhost.localdomain systemd[1]: Failed to start PostgreSQL database server.
Yükseltme çalıştırmak bana verir:
[root@localhost lib]# postgresql-setup --upgrade
* Upgrading database.
ERROR: pg_upgrade tool failed
ERROR: Upgrade failed.
* See /var/lib/pgsql/upgrade_postgresql.log for details.
Günlük dosyası bana verir:
...
Setting frozenxid and minmxid counters in new cluster ok
Restoring global objects in the new cluster
*failure*
Consult the last few lines of "pg_upgrade_utility.log" for
the probable cause of the failure.
Failure, exiting
(neden bu bir hazine avı gibi hissediyor ...?), o zaman o kütük bana şunu veriyor:
...
command: "/usr/bin/psql" --echo-queries --set ON_ERROR_STOP=on --no-psqlrc --dbname=template1 --host /var/lib/pgsql --port 5432 --username postgres -f "pg_upgrade_dump_globals.sql" >> "pg_upgrade_utility.log" 2>&1
/usr/bin/psql: symbol lookup error: /usr/bin/psql: undefined symbol: PQencryptPasswordConn
Ah! Anlaşılan bazı semboller eksik. Fakat bu sembol nasıl alınır?