Обсуждение: pg_upgrade with postgis

Поиск
Список
Период
Сортировка

pg_upgrade with postgis

От
Ronit Allen
Дата:
HI -
 
I am looking to upgrade our postgresql 9 to 9,2 using pg_upgrade.
 
We have postgis installed on the current cluster (9).
 
Both postgresql and postgis was installed using the pg repos.
 
Will I need to re-install postgis after running pg_upgrade?
 
Thanks for any guidance,
Ronit

Re: pg_upgrade with postgis

От
Bruce Momjian
Дата:
On Tue, Sep 11, 2012 at 04:15:31PM +0300, Ronit Allen wrote:
> HI -
>
> I am looking to upgrade our postgresql 9 to 9,2 using pg_upgrade.
>
> We have postgis installed on the current cluster (9).
>
> Both postgresql and postgis was installed using the pg repos.
>
> Will I need to re-install postgis after running pg_upgrade?

You will need to have all plug-in stuff installed in the new
cluster before running pg_upgrade.  You should then be able to run
pg_upgrade and all your postgis data will be migrated.

--
  Bruce Momjian  <bruce@momjian.us>        http://momjian.us
  EnterpriseDB                             http://enterprisedb.com

  + It's impossible for everything to be true. +


Re: pg_upgrade with postgis

От
Ronit Allen
Дата:
Hi -
 
Thanks.
As we installed using pg repos (yum) I don't think it will allow me to re-install postgis.
Is it possible to specify a target cluster for a postgis install from repo or will it need to be installed from source?
Thanks again.
On Wed, Sep 12, 2012 at 1:17 AM, Bruce Momjian <bruce@momjian.us> wrote:
On Tue, Sep 11, 2012 at 04:15:31PM +0300, Ronit Allen wrote:
> HI -
>
> I am looking to upgrade our postgresql 9 to 9,2 using pg_upgrade.
>
> We have postgis installed on the current cluster (9).
>
> Both postgresql and postgis was installed using the pg repos.
>
> Will I need to re-install postgis after running pg_upgrade?

You will need to have all plug-in stuff installed in the new
cluster before running pg_upgrade.  You should then be able to run
pg_upgrade and all your postgis data will be migrated.

--
  Bruce Momjian  <bruce@momjian.us>        http://momjian.us
  EnterpriseDB                             http://enterprisedb.com

  + It's impossible for everything to be true. +

Re: pg_upgrade with postgis

От
Bruce Momjian
Дата:
On Thu, Sep 13, 2012 at 02:12:40AM +0300, Ronit Allen wrote:
> Hi -
>
> Thanks.
> As we installed using pg repos (yum) I don't think it will allow me to
> re-install postgis.
> Is it possible to specify a target cluster for a postgis install from repo or
> will it need to be installed from source?

You just need to have a valid data directory and binaries --- you don't
need source.

---------------------------------------------------------------------------


> Thanks again.
> On Wed, Sep 12, 2012 at 1:17 AM, Bruce Momjian <bruce@momjian.us> wrote:
>
>     On Tue, Sep 11, 2012 at 04:15:31PM +0300, Ronit Allen wrote:
>     > HI -
>     >
>     > I am looking to upgrade our postgresql 9 to 9,2 using pg_upgrade.
>     >
>     > We have postgis installed on the current cluster (9).
>     >
>     > Both postgresql and postgis was installed using the pg repos.
>     >
>     > Will I need to re-install postgis after running pg_upgrade?
>
>     You will need to have all plug-in stuff installed in the new
>     cluster before running pg_upgrade.  You should then be able to run
>     pg_upgrade and all your postgis data will be migrated.
>
>     --
>       Bruce Momjian  <bruce@momjian.us>        http://momjian.us
>       EnterpriseDB                             http://enterprisedb.com
>
>       + It's impossible for everything to be true. +
>
>

--
  Bruce Momjian  <bruce@momjian.us>        http://momjian.us
  EnterpriseDB                             http://enterprisedb.com

  + It's impossible for everything to be true. +