delete old cluster after pg_upgrade with -k option

Started by Atul Kumarabout 5 years ago2 messagesgeneral
Jump to latest
#1Atul Kumar
akumar14871@gmail.com

Hi,

I have upgrade the postgres cluster from 9.5 to 9.6 using pg_upgarde
utility with -k option.

Now I just wanted to be confirmed that is it safe to run
delete_old_cluster.sh file as we have used -k option that must created
hard links with old cluster.

Suggestions are welcome.

#2Laurenz Albe
laurenz.albe@cybertec.at
In reply to: Atul Kumar (#1)
Re: delete old cluster after pg_upgrade with -k option

On Wed, 2021-02-17 at 11:39 +0530, Atul Kumar wrote:

I have upgrade the postgres cluster from 9.5 to 9.6 using pg_upgarde
utility with -k option.

Now I just wanted to be confirmed that is it safe to run
delete_old_cluster.sh file as we have used -k option that must created
hard links with old cluster.

It is absolutely safe.

It would actually be quite unsafe *not* to delete the old cluster,
because if anybody managed to start it, data corruption would be the
consequence.

Yours,
Laurenz Albe
--
Cybertec | https://www.cybertec-postgresql.com