Re: After upgrade to 9.5 space not being released

From: Ganesh Kannan <ganesh(dot)kannan(at)weatheranalytics(dot)com>
To: "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 20:17:20
Message-ID: BL2PR07MB2356AB50815E2ED9E22F6DF586590@BL2PR07MB2356.namprd07.prod.outlook.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs


I have to ask this out of curiosity... not removing the 9.4 data directories explains why the space was not released. However, why did I not see the same issue with Index tablespace directories. I have about 4 TB of indexes and the vols were pretty much 90% utilized before the "alter table set logged", and may be 95% or so after running the statement. Does the switch from "unlogged" to "logged" of tables has a different effect on indexes - may be indexes are not "really" rebuilt as were the tables.

Thanks

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

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 Andrew Gierth 2016-06-03 20:47:31 Re: BUG #14174: Expanded-datum bug accessing freed memory
Previous Message Ganesh Kannan 2016-06-03 18:38:38 Re: After upgrade to 9.5 space not being released