Re: upgrading postgres 7.3.4 to 9.1.9

From: Kevin Grittner <kgrittn(at)ymail(dot)com>
To: Khangelani Gama <kgama(at)argility(dot)com>, "pgsql-admin(at)postgresql(dot)org" <pgsql-admin(at)postgresql(dot)org>
Subject: Re: upgrading postgres 7.3.4 to 9.1.9
Date: 2014-08-04 13:30:08
Message-ID: 1407159008.1433.YahooMailNeo@web122302.mail.ne1.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Khangelani Gama <kgama(at)argility(dot)com> wrote:

> this one instance is still on postgres 7.
>
> I dumped postgres 7 database using pg_dump –Fc on postgres 7
> binaries and then attempted pg_restore –Fc (using postgres9.1.9
> binaries)

The recommended approach is to perform the dump with software from
the newer version.

> which threw out the following errors.

> ERROR:  language "plpgsql" already exists
> DETAIL:  Proceeding with relation creation anyway.

I'm not sure you'll get this if you use the 9.1 pg_dump.  In any
event, I think it could be safely ignored if you do so.

> ERROR:  could not access file "$libdir/plperl": No such file or directory
> ERROR:  function public.plperl_call_handler() does not exist
> ERROR:  could not access file "$libdir/plperl": No such file or directory
> ERROR:  language "plperlu" does not exist

I would use CREATE EXTENSION for plperlu on the 9.1 database before
attempting to restore.

> Because of the above errors I tried the following
>
> /usr/local/pgsql9/bin/createlang -p59999 plperl template1
>
> createlang: language installation failed: ERROR:  could not open extension control file "/usr/local/pgsql9/share/extension/plperl.control": No such file or directory

I would just use CREATE EXTENSION from psql.  You might need to
install an optional package or some such, since you don't seem to
have the code....

Note that 7.3.4 is missing years of bug fixes, including fixes for
serious data-eating bugs.  I would recommend upgrading from 7.3.4
to 7.3.21 before attempting the major release upgrade if possible.

--
Kevin Grittner
EDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Sofer, Yuval 2014-08-04 13:46:22 set archive mode => on
Previous Message Khangelani Gama 2014-08-04 12:14:14 Re: upgrading postgres 7.3.4 to 9.1.9