From: Pepe TD Vo <pepevo@yahoo.com>
To: pgsql-admin@lists.postgresql.org <pgsql-admin@lists.postgresql.org>
To: Holger Jakobs <holger@jakobs.com>
Subject: Re: Move base directory to different location
Date: Thu, 26 Nov 2020 14:06:19 +0000 (UTC)
Message-ID: <2046891776.1111378.1606399579861@mail.yahoo.com> (raw)
In-Reply-To: <31b748c7-d728-9d8d-fb49-b6b935b8295b@jakobs.com>
References: <CALhHtcANxVwbRYZYyBtZ4G4jJtm+b4vJgs5vp=8twS-9YWC41Q@mail.gmail.com>
<31b748c7-d728-9d8d-fb49-b6b935b8295b@jakobs.com>
Morning Holdger,
since you are mentioning "upgrade to a newer major version", would you please share step by step how to do it in replica? I have tried to migrate v.11 to 12 before and failed to upgrade.
v/r,
Bach-Nga
No one in this world is pure and perfect. If you avoid people for their mistakes you will be alone. So judge less, love, and forgive more.To call him a dog hardly seems to do him justice though in as much as he had four legs, a tail, and barked, I admit he was, to all outward appearances. But to those who knew him well, he was a perfect gentleman (Hermione Gingold)
**Live simply **Love generously **Care deeply **Speak kindly.*** Genuinely rich *** Faithful talent *** Sharing success
On Thursday, November 26, 2020, 09:00:48 AM EST, Holger Jakobs <holger@jakobs.com> wrote:
It is no problem to move the base directory.
- stop the database server
- move the base directory as a whole to some other location
mv /var/lib/pgsql/10/data/base /some/other/location
- create a symbolic link pointing to the new location
cd /var/lib/pgsql/10/data
ln -s /some/other/location/base .
- start the database server
BTW, an upgrade to a newer major version would be a good idea.
Regards,
Holger
Am 26.11.20 um 13:59 schrieb Yambu:
Hello
May i know the procedure of moving the base directory from /var/lib/pgsql/10/data/base to another location?
regards --
Holger Jakobs, Bergisch Gladbach, Tel. +49-178-9759012
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: pepevo@yahoo.com, pgsql-admin@lists.postgresql.org, holger@jakobs.com
Subject: Re: Move base directory to different location
In-Reply-To: <2046891776.1111378.1606399579861@mail.yahoo.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