Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#47656 - [postgresql] Missing pg_upgrade_support.so fails upgrading from version 9.4

Attached to Project: Arch Linux
Opened by Ari Caldeira (aricaldeira) - Thursday, 07 January 2016, 12:24 GMT
Last edited by Dan McGee (toofishes) - Wednesday, 23 March 2016, 11:32 GMT
Task Type Bug Report
Category Packages: Testing
Status Closed
Assigned To Dan McGee (toofishes)
Architecture x86_64
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
Missing pg_upgrade_support.so fails upgrading from version 9.4


Additional info:
From testing repo:
postgrsql 9.5.0-1
postgresql-old-upgrade 9.4.5-1

postgres/data has been continually upgraded since version 9.2, to 9.3 and then again to 9.4


Steps to reproduce:

Upgrade using testing repo
Stop old postgresql if already running
Follow steps to upgrade from Wiki: https://wiki.archlinux.org/index.php/PostgreSQL#Upgrading_PostgreSQL

Result of pg_upgrade ends with the following text:

====================
Checking for presence of required libraries fatal

Your installation references loadable libraries that are missing from the
new installation. You can add these libraries to the new installation,
or remove the functions using them from the old installation. A list of
problem libraries is in the file:
loadable_libraries.txt

Failure, exiting
====================

I don't know wether I can trust the upgrade went well, and the resulting data is
reliable, or the missing library is really important to the process.

This task depends upon

Closed by  Dan McGee (toofishes)
Wednesday, 23 March 2016, 11:32 GMT
Reason for closing:  Works for me
Comment by Dan McGee (toofishes) - Thursday, 07 January 2016, 16:17 GMT
Where did it reference 'pg_upgrade_support.so'? I see that in the bug subject, but not in the provided output. Want to try and chase this down.

I see this in the 9.5 release notes (http://www.postgresql.org/docs/current/static/release-9-5.html):
* In connection with this change, the functionality previously provided by the pg_upgrade_support module has been moved into the core server.

I wonder if the error is not quite correct? Might be wise to bring this up on the PG mailing list.
Comment by Ari Caldeira (aricaldeira) - Thursday, 07 January 2016, 16:27 GMT
Sorry, I forgot to put the content of the file loadable_libraries.txt:

=====================================
Could not load library "$libdir/pg_upgrade_support"
ERROR: could not access file "$libdir/pg_upgrade_support": File or directory not found
=====================================
Comment by Valentin (ProFfeSsoRr) - Saturday, 20 February 2016, 06:51 GMT
9.5.0 upgrade 9.4.5 database as well, without any problem. Ari Caldeira - may be your postgresql-old-upgrade-9.4.5 has any problems?
Comment by Dāvis (davispuh) - Wednesday, 23 March 2016, 03:37 GMT
  • Field changed: Percent Complete (100% → 0%)
I tried only now to upgrade and getting same problem but it's really weird that one PC upgrade went fine but now on this one it doesn't work for some reason...


pg_upgrade -b /opt/pgsql-9.4/bin/ -B /usr/bin/ -d /var/lib/postgres/data-9.4/ -D ./data/
Performing Consistency Checks
-----------------------------
Checking cluster versions ok
Checking database user is the install user ok
Checking database connection settings ok
Checking for prepared transactions ok
Checking for reg* system OID user data types ok
Checking for contrib/isn with bigint-passing mismatch ok
Creating dump of global objects ok
Creating dump of database schemas
ok
Checking for presence of required libraries fatal

Your installation references loadable libraries that are missing from the
new installation. You can add these libraries to the new installation,
or remove the functions using them from the old installation. A list of
problem libraries is in the file:
loadable_libraries.txt




Could not load library "$libdir/pg_upgrade_support"
ERROR: could not access file "$libdir/pg_upgrade_support": No such file or directory

Comment by Valentin (ProFfeSsoRr) - Wednesday, 23 March 2016, 04:05 GMT
Do you have /opt//pgsql-9.4/lib/pg_upgrade_support.so ?
Comment by Dāvis (davispuh) - Wednesday, 23 March 2016, 11:13 GMT
yes, anyway I solved it by googling :D and added note about this to wiki

https://wiki.archlinux.org/index.php/PostgreSQL#Troubleshooting

"
It means you have leftovers from old failed pg_upgrade attempts that you never completed. So you'll need to start postgres with old data and
in each database execute DROP SCHEMA IF EXISTS binary_upgrade CASCADE;
"

Loading...