Re: After upgrade to 9.5 space not being released

From: Ganesh Kannan <ganesh(dot)kannan(at)weatheranalytics(dot)com>
To: Bruce Momjian <bruce(at)momjian(dot)us>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: "pgsql-bugs(at)postgresql(dot)org" <pgsql-bugs(at)postgresql(dot)org>
Subject: Re: After upgrade to 9.5 space not being released
Date: 2016-06-03 18:38:38
Message-ID: BL2PR07MB235621B37454697EF3EA766A86590@BL2PR07MB2356.namprd07.prod.outlook.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Thank you Bruce and Tom.

I ran the delete_old_cluster.sh script, and it did the job. Appreciate all your work and timely response. That was my bad, I did not want to remove the 9.4 directories until I validate the database upgrade fully, so made some wrong assumptions about hard link behavior.

Thanks again,
Ganesh

________________________________________
From: Bruce Momjian <bruce(at)momjian(dot)us>
Sent: Friday, June 3, 2016 1:48:53 PM
To: Tom Lane
Cc: Ganesh Kannan; pgsql-bugs(at)postgresql(dot)org
Subject: Re: [BUGS] After upgrade to 9.5 space not being released

On Fri, Jun 3, 2016 at 01:40:38PM -0400, Tom Lane wrote:
> Ganesh Kannan <ganesh(dot)kannan(at)weatheranalytics(dot)com> writes:
> > Sorry I meant to say I did not remove the old data directory given they are hard links, and not soft links. I thought I should not remove those hard links when using "pg_upgrade --link" option.
>
> As long as those old files still have hard links in the old data
> directory, they are not going to go away.
>
> Note that if you're using tablespaces, you need to clear out the
> appropriate tablespace subdirectories, not only the old data
> directory proper.

Uh, after the upgrade, the output say:

Running this script will delete the old cluster's data files:
./delete_old_cluster.sh

That script is designed to do this cleanup.

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

+ As you are, so once was I. As I am, so you will be. +
+ Ancient Roman grave inscription +

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Ganesh Kannan 2016-06-03 20:17:20 Re: After upgrade to 9.5 space not being released
Previous Message Bruce Momjian 2016-06-03 17:48:53 Re: After upgrade to 9.5 space not being released