Re: delete old cluster after pg_upgrade with -k option

From: Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at>
To: Atul Kumar <akumar14871(at)gmail(dot)com>, pgsql-general <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Re: delete old cluster after pg_upgrade with -k option
Date: 2021-02-17 07:42:25
Message-ID: aeb42c58da7ee8328302b238fadfc359dc69c17f.camel@cybertec.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Laurenz Albe 2021-02-17 07:45:05 Re: Order by not working
Previous Message Atul Kumar 2021-02-17 06:09:17 delete old cluster after pg_upgrade with -k option