From: James(王旭) <wangxu@gu360.com>
To: pgsql-general <pgsql-general@postgresql.org>
Subject: What to do with tablespaces when upgrading to pg13 from pg1X?
Date: Tue, 12 Jan 2021 10:28:52 +0800
Message-ID: <tencent_054F2BAA623053795C9BE722@qq.com> (raw)
Hello,
I was planning to upgrade from 12 to 13 using this command:
/usr/pgsql-13/bin/pg_upgrade -b /usr/pgsql-12/bin/ -B /usr/pgsql-13/bin/ -d /data/pg/ -D /pg/pgdata_13/ --jobs=10
And I got this output:
Checking for presence of required libraries ok
Checking database user is the install user ok
Checking for prepared transactions ok
Checking for new cluster tablespace directories
new cluster tablespace directory already exists: "/data/tsdb/metas/PG_13_202007201"
Failure, exiting
I think it's because /data/tsdb was my tablespace dir which was out of the old main data directory(/data/pg/).
So what should I do with old tablespaces when upgrading ?
Thanks a lot !
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: wangxu@gu360.com
Subject: Re: What to do with tablespaces when upgrading to pg13 from pg1X?
In-Reply-To: <tencent_054F2BAA623053795C9BE722@qq.com>
References: <tencent_054F2BAA623053795C9BE722@qq.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