Re: pg_upgrade & tablespaces

From: Bruce Momjian <bruce(at)momjian(dot)us>
To: Joseph Kregloh <jkregloh(at)sproutloud(dot)com>
Cc: Adrian Klaver <adrian(dot)klaver(at)gmail(dot)com>, Jeff Janes <jeff(dot)janes(at)gmail(dot)com>, John R Pierce <pierce(at)hogranch(dot)com>, pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: pg_upgrade & tablespaces
Date: 2014-04-17 15:45:42
Message-ID: 20140417154542.GE7449@momjian.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers

On Mon, Jan 13, 2014 at 09:17:41AM -0500, Joseph Kregloh wrote:
>
>
>
> On Fri, Jan 10, 2014 at 11:53 AM, Adrian Klaver <adrian(dot)klaver(at)gmail(dot)com>
> wrote:
>
> On 01/10/2014 08:40 AM, Joseph Kregloh wrote:
>
> Just as a followup to this. The process that I am using to do the
> upgrade is as follows:
>
> 1. Install Postgres 9.3 in /opt dir.
> 2. In 9.0 instance update spclocation in pg_tablespace.
> 3. Update the symlinks in the pg_tblspace folder.
> 4. Move the tablespace folders to new location.
> 5. Run pg_upgrade.
> 6. Test upgrade results on 9.3 cluster.
> 7. Run the sh files created by pg_upgrade.
> 8. Uninstall Postgres 9.3 in /opt dir.
> 9. Install Postgres 9.3 in default location.
> 10. Enjoy Postgres 9.3.
>
>
> For completeness, the new location you are moving the tablespaces to, is
> that in or out of $PGDATA?

This will be fixed in the next 9.3 minor release by throwing ane error
for non-existent tablespace directores.

--
Bruce Momjian <bruce(at)momjian(dot)us> http://momjian.us
EnterpriseDB http://enterprisedb.com

+ Everyone has their own god. +

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message David G Johnston 2014-04-17 16:25:43 Re: any way for a transaction to "see" inserts done earlier in the transaction?
Previous Message Bruce Momjian 2014-04-17 15:44:42 Re: [GENERAL] pg_upgrade & tablespaces

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2014-04-17 15:46:39 Re: Verbose output of pg_dump not show schema name
Previous Message Bruce Momjian 2014-04-17 15:44:42 Re: [GENERAL] pg_upgrade & tablespaces