From: Kevin Grittner <kgrittn@ymail.com>
To: Khangelani Gama <kgama@argility.com>
To: pgsql-admin@postgresql.org <pgsql-admin@postgresql.org>
Subject: Re: upgrading postgres 7.3.4 to 9.1.9
Date: Mon, 4 Aug 2014 06:30:08 -0700
Message-ID: <1407159008.1433.YahooMailNeo@web122302.mail.ne1.yahoo.com> (raw)
In-Reply-To: <bf801eb082936b7671c4f7dfb26beec3@mail.gmail.com>
References: <bf801eb082936b7671c4f7dfb26beec3@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-admin>
Khangelani Gama <kgama@argility.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
--
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: kgrittn@ymail.com, kgama@argility.com
Subject: Re: upgrading postgres 7.3.4 to 9.1.9
In-Reply-To: <1407159008.1433.YahooMailNeo@web122302.mail.ne1.yahoo.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox