Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XELRT-0001XY-26 for pgsql-admin@arkaria.postgresql.org; Mon, 04 Aug 2014 16:48:59 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XELRQ-00030Q-FD for pgsql-admin@arkaria.postgresql.org; Mon, 04 Aug 2014 16:48:56 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XELRP-00030J-9s for pgsql-admin@postgresql.org; Mon, 04 Aug 2014 16:48:55 +0000 Received: from eu1sys200aog107.obsmtp.com ([207.126.144.123]) by makus.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XELRL-0004JO-Jl for pgsql-admin@postgresql.org; Mon, 04 Aug 2014 16:48:53 +0000 Received: from mail-pd0-f170.google.com ([209.85.192.170]) (using TLSv1) by eu1sys200aob107.postini.com ([207.126.147.11]) with SMTP ID DSNKU9+5caLOe3hfQLSZtxc8YhfhWY7Ywrr+@postini.com; Mon, 04 Aug 2014 16:48:51 UTC Received: by mail-pd0-f170.google.com with SMTP id g10so9915271pdj.15 for ; Mon, 04 Aug 2014 09:48:48 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:references:in-reply-to:mime-version :thread-index:date:message-id:subject:to:content-type :content-transfer-encoding; bh=IlUrEBJiwcPLyldcPY0mpy9zry0DYzMGMWtKGVtOp/I=; b=UVY50GiB1jt6WTDk93avL4IjwIQqRDVSm5nNAi4oSjsRTchiLpt6IckcZrFhJOLwwz J9mc+6ZGRkOdzWu3QFlRWaJE4GdeB/WevtpbliRNKLV+Y0Z/czXVbPgKLQH/RGxUvCpt dqlXNb37B4FVQBoLU0n4be9THFy/2FchVkh6SqeNlACteOOeFHSkMSo3d/kdUCpahaeB m0USlMNG2iyBdqMyO4CM2Y9iIJF7TjLYi47M79bzaqK42rMKZ0Y1YNuKfQJrngMTP3IV PLLOTNI+2lQDd21XHjpvZU8DFPp68Lu54SdzYVFbUmoNoo9ZwJvxJsur0XtvH9U02jTC qqyw== X-Gm-Message-State: ALoCoQnubGVDphT2hHlZuPVkqGRlrsKK8f4qnNDU8V9I2pKmb44azim9GisBHjawpmrj7nozeoa5VBP/9RV3NallAn1yeSTyiePelGsh8ixr1bKpPIrp+E3+9Zzg3BlEkZHZJotDVt+bFi7nBJWASdXYSJoMfkq3dg== X-Received: by 10.70.94.100 with SMTP id db4mr4581382pdb.122.1407170928274; Mon, 04 Aug 2014 09:48:48 -0700 (PDT) X-Received: by 10.70.94.100 with SMTP id db4mr4581365pdb.122.1407170928087; Mon, 04 Aug 2014 09:48:48 -0700 (PDT) From: Khangelani Gama References: <1407159008.1433.YahooMailNeo@web122302.mail.ne1.yahoo.com> In-Reply-To: <1407159008.1433.YahooMailNeo@web122302.mail.ne1.yahoo.com> MIME-Version: 1.0 X-Mailer: Microsoft Outlook 14.0 Thread-Index: AQLAo3AD0SI8NySoocndshO8R1ykkQFN/yMxmdRPuqA= Date: Mon, 4 Aug 2014 18:48:44 +0200 Message-ID: Subject: Re: upgrading postgres 7.3.4 to 9.1.9 To: Kevin Grittner , pgsql-admin@postgresql.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Pg-Spam-Score: -4.2 (----) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-admin Precedence: bulk Sender: pgsql-admin-owner@postgresql.org -----Original Message----- From: Kevin Grittner [mailto:kgrittn@ymail.com] Sent: 04 August 2014 03:30 PM To: Khangelani Gama; pgsql-admin@postgresql.org Subject: Re: [ADMIN] upgrading postgres 7.3.4 to 9.1.9 Khangelani Gama wrote: > this one instance is still on postgres 7. > > I dumped postgres 7 database using pg_dump =E2=80=93Fc on postgres 7 bina= ries > and then attempted pg_restore =E2=80=93Fc (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 Thanks Kevin, in psql I keep getting the following errors: I saw what it is explained in http://stackoverflow.com/questions/12136033/install-pl-perl-in-postgresql But I am not sure if this installation command "yum install perl-devel" will work without affecting other special setups. template1=3D# CREATE EXTENSION plperl; ERROR: could not open extension control file "/usr/local/pgsql9/share/extension/plperl.control": No such file or directory template1=3D# CREATE EXTENSION plperlu; ERROR: could not open extension control file "/usr/local/pgsql9/share/extension/plperlu.control": No such file or directory http://stackoverflow.com/questions/12136033/install-pl-perl-in-postgresql CONFIDENTIALITY NOTICE The contents of and attachments to this e-mail are intended for the address= ee only, and may contain the confidential information of Argility (Proprietary) Limited and/or its subsidiaries. Any = review, use or dissemination thereof by anyone other than the intended addressee is prohibited.If you are not the intended= addressee please notify the writer immediately and destroy the e-mail. Argility (Proprietary) Limited and its subsidiaries= distance themselves from and accept no liability for unauthorised use of their e-mail facilities or e-mails sent other than = strictly for business purposes. =0D --=20 Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin