Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XEILF-0002EU-Nv for pgsql-admin@arkaria.postgresql.org; Mon, 04 Aug 2014 13:30:21 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XEILE-0008Fz-5o for pgsql-admin@arkaria.postgresql.org; Mon, 04 Aug 2014 13:30:20 +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 1XEILC-0008E8-Lq for pgsql-admin@postgresql.org; Mon, 04 Aug 2014 13:30:19 +0000 Received: from nm19-vm2.bullet.mail.ne1.yahoo.com ([98.138.91.95]) by makus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XEIL4-0000WB-87 for pgsql-admin@postgresql.org; Mon, 04 Aug 2014 13:30:12 +0000 Received: from [98.138.101.132] by nm19.bullet.mail.ne1.yahoo.com with NNFMP; 04 Aug 2014 13:30:08 -0000 Received: from [98.138.89.249] by tm20.bullet.mail.ne1.yahoo.com with NNFMP; 04 Aug 2014 13:30:08 -0000 Received: from [127.0.0.1] by omp1041.mail.ne1.yahoo.com with NNFMP; 04 Aug 2014 13:30:08 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 733878.76366.bm@omp1041.mail.ne1.yahoo.com Received: (qmail 14708 invoked by uid 60001); 4 Aug 2014 13:30:08 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1407159008; bh=0O4UdtVjmfIoOtVDiYPsYUKOWB8/QRU8KIKtjkf12HE=; h=References:Message-ID:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=MZ17sMJy60ybTZ5fOeH9v8AFkVI8v6SJHLnwJIkj2slJVarDQlzhP2hrEGqT14MBUvEcR9Ds28QZqxTR9g1KDHZD+yKUQhvnkKztC8pNDBmJlzUCWo77x6UccS+xB3/DWT8LahZWjooG+AweHshK/R/QJ2Mrz5t/wJA9pGS14Gw= X-YMail-OSG: ywJuhmMVM1mZZ6Arzlcmim.s8ZVyoT_flFR38j_JzAngTF4 ef4v1XRh60JFUtwBo2DxxqMZnSB4SYvVTexwseR0UC37GksyS919vts.hBcJ xTstZXu.q59070SVgQgo2xfG_TJYFgxaS66Hsi_C8usu_1r1kruF9nXLBvEQ z_g_u.WitDw2.iZyW45GlWYLzf3pWQlDC4JoosfnCHRuAUWIxdArmy8kLxtv vGToev5orNIo90Tn7_SgChR5lXJrC.cRR8fgtljFa7cRd3DfOsLHKmpkoNO. B7n1thbyAoQ6m3sFYJsrXG4Kmk5VAv3mGopiprZVctcY3Mvf99kqlbpxDdBW 2Nccg9HHGUJWvcQC3hcTJspKFMAptvHxFhYlSAR6be35BrQmM0E_W4rfrOzW InjMBZmkYQC2i5j5lQau3ha_bIR4Fshh9XhWkWxReSSUEuAqJqrvklaZL9yl 9XQdmBF4cjUJYBp6QIJV8p0UQO8CNKDM21GzpbwHSzn3VUiSLqe6W2vLLZI3 1HWKtC.uM9RWyiXdl8RZty5LLLoU56vknvAevnYa8JZCpRHX6lldYOv.QjhL d3egBbRfVVXo- Received: from [24.178.25.147] by web122302.mail.ne1.yahoo.com via HTTP; Mon, 04 Aug 2014 06:30:08 PDT X-Rocket-MIMEInfo: 002.001, S2hhbmdlbGFuaSBHYW1hIDxrZ2FtYUBhcmdpbGl0eS5jb20.IHdyb3RlOgoKPiB0aGlzIG9uZSBpbnN0YW5jZSBpcyBzdGlsbCBvbiBwb3N0Z3JlcyA3Lgo.Cj4gSSBkdW1wZWQgcG9zdGdyZXMgNyBkYXRhYmFzZSB1c2luZyBwZ19kdW1wIOKAk0ZjIG9uIHBvc3RncmVzIDcKPiBiaW5hcmllcyBhbmQgdGhlbiBhdHRlbXB0ZWQgcGdfcmVzdG9yZSDigJNGYyAodXNpbmcgcG9zdGdyZXM5LjEuOQo.IGJpbmFyaWVzKQoKVGhlIHJlY29tbWVuZGVkIGFwcHJvYWNoIGlzIHRvIHBlcmZvcm0gdGhlIGR1bXAgd2l0aCABMAEBAQE- X-Mailer: YahooMailWebService/0.8.198.689 References: Message-ID: <1407159008.1433.YahooMailNeo@web122302.mail.ne1.yahoo.com> Date: Mon, 4 Aug 2014 06:30:08 -0700 From: Kevin Grittner Reply-To: Kevin Grittner Subject: Re: upgrading postgres 7.3.4 to 9.1.9 To: Khangelani Gama , "pgsql-admin@postgresql.org" In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Pg-Spam-Score: -1.9 (-) 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 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 > binaries 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:=C2=A0 language "plpgsql" already exists > DETAIL:=C2=A0 Proceeding with relation creation anyway. I'm not sure you'll get this if you use the 9.1 pg_dump.=C2=A0 In any event, I think it could be safely ignored if you do so. > ERROR:=C2=A0 could not access file "$libdir/plperl": No such file or dire= ctory > ERROR:=C2=A0 function public.plperl_call_handler() does not exist > ERROR:=C2=A0 could not access file "$libdir/plperl": No such file or dire= ctory > ERROR:=C2=A0 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:=C2=A0 could not open ext= ension control file "/usr/local/pgsql9/share/extension/plperl.control": No = such file or directory I would just use CREATE EXTENSION from psql.=C2=A0 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.=C2=A0 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 --=20 Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin