pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Achilleas Mantzios <achill@matrix.gatewaynet.com>
To: pgsql-admin@postgresql.org
Subject: Re: using pg_upgrade on FreeBSD for postgresql installed by ports
Date: Tue, 12 Nov 2013 09:10:25 +0200
Message-ID: <5281D461.1020902@matrix.gatewaynet.com> (raw)
In-Reply-To: <CAKoxK+4CMvC-BQS6pYxXbxgWbuaGYi1PYOKOxT5dTH_7q3Pr8w@mail.gmail.com>
References: <CAKoxK+4CMvC-BQS6pYxXbxgWbuaGYi1PYOKOxT5dTH_7q3Pr8w@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-admin>

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 <jail_id> install databases/postgres93-contrib) , or use the chroot option (pkg -c 
<some_other_path> 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



view thread (4+ messages)  latest in thread

Message-ID: <5281D461.1020902@matrix.gatewaynet.com>
Permalink:  ../5281D461.1020902@matrix.gatewaynet.com/
Also on:    postgresql.org/message-id/5281D461.1020902@matrix.gatewaynet.com

 · 

reply

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: achill@matrix.gatewaynet.com
  Subject: Re: using pg_upgrade on FreeBSD for postgresql installed by ports
  In-Reply-To: <5281D461.1020902@matrix.gatewaynet.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