Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Vg88U-0004Yv-Uv for pgsql-admin@arkaria.postgresql.org; Tue, 12 Nov 2013 07:11:43 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Vg88U-0006g7-Cy for pgsql-admin@arkaria.postgresql.org; Tue, 12 Nov 2013 07:11:42 +0000 Received: from makus.postgresql.org ([98.129.198.125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Vg88T-0006g0-A5 for pgsql-admin@postgresql.org; Tue, 12 Nov 2013 07:11:41 +0000 Received: from adsltrust.ath.forthnet.gr ([194.219.204.174] helo=smadev.internal.net) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Vg87O-0006nj-Db for pgsql-admin@postgresql.org; Tue, 12 Nov 2013 07:10:37 +0000 Received: from smadev.internal.net (smadev [10.9.200.131]) by smadev.internal.net (8.14.7/8.14.7) with ESMTP id rAC7AP43063826 for ; Tue, 12 Nov 2013 09:10:25 +0200 (EET) (envelope-from achill@matrix.gatewaynet.com) Message-ID: <5281D461.1020902@matrix.gatewaynet.com> Date: Tue, 12 Nov 2013 09:10:25 +0200 From: Achilleas Mantzios User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:24.0) Gecko/20100101 Thunderbird/24.0.1 MIME-Version: 1.0 To: pgsql-admin@postgresql.org Subject: Re: using pg_upgrade on FreeBSD for postgresql installed by ports References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -0.0 (/) 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 Using the working directory as you wrote might be a good idea (for ephemeral use). If you want to use the port method, generally you can solve this either by running it inside a jail (pkg -j install databases/postgres93-contrib) , or use the chroot option (pkg -c databases/postgres93-contrib) However, as much as the use of ports/packages in FreeBSD is advocated over the manual installation, still, PostgreSQL (and its subprojects) are maybe one of the very few software that you normally want to compile them by hand. I avoid the use of packages for postgresql. They don't give you much ease but restrict your flexibility. So, what you have to do is download the postgresql version you want and compile it, along with its contrib/pg_upgrade module in place. That said, unfortunately, I didn't have much luck in FreeBSD trying to upgrade from 9.0 to 9.2 one year ago. You might give it a try tho. Hmm now that i think about it, i would follow the -c (chroot approach) first (the patches might have solved some problems), and if that proves to be a dependency nightmare, then go to the "working directory" solution, then go manual. On 11/11/2013 18:42, Luca Ferrari wrote: > Hi all, > is there any best practice in using pg_upgrade to upgrade a cluster > installed using ports on FreeBSD? I mean, the port will install the > binaries over the previous installation therefore removing the old > binaries. May be using the "working" directory before the port get > installed? > > Thanks, > Luca > > -- Achilleas Mantzios -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin