Re: After upgrade to 9.5 space not being released - Mailing list pgsql-bugs

From Ganesh Kannan
Subject Re: After upgrade to 9.5 space not being released
Date
Msg-id BL2PR07MB235621B37454697EF3EA766A86590@BL2PR07MB2356.namprd07.prod.outlook.com
Whole thread Raw
In response to Re: After upgrade to 9.5 space not being released  (Bruce Momjian <bruce@momjian.us>)
Responses Re: After upgrade to 9.5 space not being released  (Ganesh Kannan <ganesh.kannan@weatheranalytics.com>)
List 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 t=
he 9.4 directories until I validate the database upgrade fully, so made som=
e wrong assumptions about hard link behavior.

Thanks again,
Ganesh

________________________________________
From: Bruce Momjian <bruce@momjian.us>
Sent: Friday, June 3, 2016 1:48:53 PM
To: Tom Lane
Cc: Ganesh Kannan; pgsql-bugs@postgresql.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.kannan@weatheranalytics.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 ha=
rd 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@momjian.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 +

pgsql-bugs by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: After upgrade to 9.5 space not being released
Next
From: Ganesh Kannan
Date:
Subject: Re: After upgrade to 9.5 space not being released