Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XEMr6-0004oL-3e for pgsql-admin@arkaria.postgresql.org; Mon, 04 Aug 2014 18:19:32 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XEMr5-0003pd-In for pgsql-admin@arkaria.postgresql.org; Mon, 04 Aug 2014 18:19:31 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XEMr4-0003pW-IT for pgsql-admin@postgresql.org; Mon, 04 Aug 2014 18:19:30 +0000 Received: from nm9-vm6.bullet.mail.ne1.yahoo.com ([98.138.91.102]) by magus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XEMqv-0001XU-Mm for pgsql-admin@postgresql.org; Mon, 04 Aug 2014 18:19:29 +0000 Received: from [98.138.101.131] by nm9.bullet.mail.ne1.yahoo.com with NNFMP; 04 Aug 2014 18:19:18 -0000 Received: from [98.138.89.168] by tm19.bullet.mail.ne1.yahoo.com with NNFMP; 04 Aug 2014 18:19:18 -0000 Received: from [127.0.0.1] by omp1024.mail.ne1.yahoo.com with NNFMP; 04 Aug 2014 18:19:18 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 480150.10159.bm@omp1024.mail.ne1.yahoo.com Received: (qmail 58074 invoked by uid 60001); 4 Aug 2014 18:19:18 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1407176358; bh=roN1yUxsdoHx1v8nzD2zAvXGrAPyFc9gUHfeS7RZeew=; h=References:Message-ID:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=4f++rSXUBgSjuFxNXRzJ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0aW5nIHRoZSBmb2xsb3dpbmcgZXJyb3JzOiBJIHNhdyB3aGF0IGl0IGlzCj4gZXhwbGFpbmVkIGluCj4gaHR0cDovL3N0YWNrb3ZlcmZsb3cuY29tL3F1ZXN0aW9ucy8xMjEzNjAzMy9pbnN0YWxsLXBsLXBlcmwtaW4tcG9zdGdyZXNxbAo.IEJ1dCBJIGFtIG5vdCBzdXJlIGlmIHRoaXMgaW5zdGFsbGF0aW9uIGNvbW1hbmQgInl1bSBpbnN0YWxsCj4gcGVybC1kZXZlbCIgd2lsbAo.IHdvcmsgd2kBMAEBAQE- X-Mailer: YahooMailWebService/0.8.198.689 References: <1407159008.1433.YahooMailNeo@web122302.mail.ne1.yahoo.com> e2a3414f118ca2958923c69c0abecc45@mail.gmail.com Message-ID: <1407176358.38816.YahooMailNeo@web122301.mail.ne1.yahoo.com> Date: Mon, 4 Aug 2014 11:19:18 -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: > 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. Hard to say.=C2=A0 I'm not even sure what OS this is or what you mean by "other special setups". > template1=3D#=C2=A0 CREATE EXTENSION plperl; > ERROR:=C2=A0 could not open extension control file > "/usr/local/pgsql9/share/extension/plperl.control": No such file or direc= tory > template1=3D#=C2=A0 CREATE EXTENSION plperlu; > ERROR:=C2=A0 could not open extension control file > "/usr/local/pgsql9/share/extension/plperlu.control": No such file or dire= ctory /usr/local/pgsql9/ does not seem likely to be a location that a packaged build would use, since 9.0, 9.1, etc. are different major releases and packagers would normally want to make it easy to install different major releases on the same system.=C2=A0 This looks like it was probably a build and install from source code.=C2=A0 It would help to know how the build was configured.=C2=A0 Please run /usr/local/pgsql9/bin/pg_config to and post the output. Most likely your best course will be to download the source code for 9.1.14 to get bug fixes from the last year and a quarter, and make a new build to a new export location (specific to at least 9.1; personally I like to use a separate directory for each minor release to make the next minor upgrade take only a few seconds of down time, but most people don't do it that way).=C2=A0 Make sure when you configure for the new build you configure it to be compatible with the old, but make sure that --with-perl is specified.If you are not familiar with this sort of build and install process, you should probably find someone to help you who is. > Can I try the following , I just don=E2=80=99t want to break other > databases already running on postgres9 > > Stop all instances from running > > ./configure=C2=A0 --with-perl --prefix=3D$PATH > Gmake > Gmake install > > And then create an instance, and then pg_restore. Personally, I would get that new build in a new directory, make sure that it works with a PITR restore (or directory tree copy while the database is stopped) of one of the other 9.1 clusters, and make sure you can CREATE EXTENSION plperl before trying to convert this 7.3 database.=C2=A0 Then you can move all the old clusters over to the new executable by updating your service script to point to the new executable running stop and then running start.=C2=A0 (I have found that restart does not work for a minor upgrade -- a separate stop -w and start -w is needed.) -- 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