From: | Ganesh Kannan <ganesh(dot)kannan(at)weatheranalytics(dot)com> |
---|---|
To: | 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 17:29:42 |
Message-ID: | BL2PR07MB23563B9759941D36983DBE4F86590@BL2PR07MB2356.namprd07.prod.outlook.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs |
Thanks for the response Tom.
Yes, after upgrade to 9.5, I had the hard links. But next step I migrated the tables to new tablespaces , with logging. Wouldn't "alter tablespace set tablespace, set logged " supposed to physically recreate the tables in the new tablespace, and remove the space occupied by the original unlogged table?
Example: I had an unlogged table: test_y1981, in tablespace: ts_data2, I executed statement like the following:
psql> alter table test_y1981 set tablespace ts_data5 , set logged;
I was expecting to see the table files in volume supporting tablespace: "ts_data5" ( which is what I see), but no space taken up in volume supporting tablespace "ts_data2". As per pg_class, there are no objects in tablespace "ts_land2".
Thanks
Ganesh
________________________________________
From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Sent: Friday, June 3, 2016 1:05 PM
To: Ganesh Kannan
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: [BUGS] After upgrade to 9.5 space not being released
Ganesh Kannan <ganesh(dot)kannan(at)weatheranalytics(dot)com> writes:
> Upgraded a very large database from Pg 9.4.7 to 9.5.3 , using pg_upgrade --link option.
Did you ever remove the old data directory? If not, the table files are
still linked there.
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Ganesh Kannan | 2016-06-03 17:31:56 | Re: After upgrade to 9.5 space not being released |
Previous Message | Tom Lane | 2016-06-03 17:25:22 | Re: BUG #14174: Expanded-datum bug accessing freed memory |