Re: pg_upgrade 9.5.1: pg_upgrade_support missing

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: pg_upgrade 9.5.1: pg_upgrade_support missing
Дата
Msg-id 1017.1456960331@sss.pgh.pa.us
обсуждение исходный текст
Ответ на pg_upgrade 9.5.1: pg_upgrade_support missing  (schoetbi schoetbi <tobias.schoenit@gmail.com>)
Ответы Re: pg_upgrade 9.5.1: pg_upgrade_support missing  (schoetbi <tobias.schoenit@gmail.com>)
Список pgsql-general
schoetbi schoetbi <tobias.schoenit@gmail.com> writes:
> i tried to migrate a database cluster from pg 9.4.1 to 9.5.1 with
> pg_upgrade. I got the follwing error:

>> Could not load library "$libdir/pg_upgrade_support"

Hmm, pg_upgrade_support isn't a separate library anymore; it's been merged
into core.  I would not have expected that to cause any problems, because
the functions in that library shouldn't have been referenced in your old
database in the first place.  They were supposed to be installed and then
removed again during the process of (prior versions of) pg_upgrade.

I'm guessing you had leftovers from old failed pg_upgrade attempts that
you never completed.

What you want to do is simply manually drop the functions referencing
$libdir/pg_upgrade_support.  A look into the pg_upgrade sources suggests
that this ought to do it:

DROP SCHEMA IF EXISTS binary_upgrade CASCADE;

though you'll probably have to do that in every database of the
installation.

            regards, tom lane


В списке pgsql-general по дате отправления:

Предыдущее
От: avi Singh
Дата:
Сообщение: Re: Postgresql upgrade 9.5
Следующее
От: "Joshua D. Drake"
Дата:
Сообщение: Re: Issue enabling track_counts to launch autovacuum in 9.4.5