Обсуждение: Pg_upgrade question

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

Pg_upgrade question

От
DM
Дата:
We are planning to upgrade to 9.01 from 8.4/8.3 version. On my production Server, there isn't much space left to do a pg_upgrade (Copy), 

Can I execute pg_upgrade from new box by pointing to the data directory and binaries on old box.


Thanks
Deepak



Re: Pg_upgrade question

От
Devrim GÜNDÜZ
Дата:
On Tue, 2010-11-30 at 14:00 -0800, DM wrote:
> We are planning to upgrade to 9.01 from 8.4/8.3 version. On my
> production Server, there isn't much space left to do a pg_upgrade
> (Copy),

You can use pg_upgrade in link mode -- and AFAIK it uses less extra
space as compared to copy mode:

http://www.postgresql.org/docs/9.0/static/pgupgrade.html

> Can I execute pg_upgrade from new box by pointing to the data
> directory and binaries on old box.

Alternatively, you can use pg_dump of 9.0 to dump the data, and restore
it using psql, since you don't really need pg_upgrade here -- you will
be moving to a new hardware anyway.

Regards,
--
Devrim GÜNDÜZ
PostgreSQL Danışmanı/Consultant, Red Hat Certified Engineer
PostgreSQL RPM Repository: http://yum.pgrpms.org
Community: devrim~PostgreSQL.org, devrim.gunduz~linux.org.tr
http://www.gunduz.org  Twitter: http://twitter.com/devrimgunduz

Вложения

Re: Pg_upgrade question

От
Vick Khera
Дата:
On Tue, Nov 30, 2010 at 5:00 PM, DM <dm.aeqa@gmail.com> wrote:
> Can I execute pg_upgrade from new box by pointing to the data directory and
> binaries on old box.

If you're moving to a new box anyway, you might as well just do the
traditional pg_dump and restore.