Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id 745A24BB8E7 for ; Wed, 4 Apr 2012 08:52:05 -0300 (ADT) Received: from sam.nabble.com ([216.139.236.26]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1SFOkt-0007QV-Qm for pgsql-admin@postgresql.org; Wed, 04 Apr 2012 11:52:04 +0000 Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1SFOkf-0008RQ-SC for pgsql-admin@postgresql.org; Wed, 04 Apr 2012 04:51:49 -0700 Date: Wed, 4 Apr 2012 04:51:49 -0700 (PDT) From: MirrorX To: pgsql-admin@postgresql.org Message-ID: <1333540309862-5617549.post@n5.nabble.com> Subject: alter index's tablespace (from default) after pg_upgrade --link MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: 0.9 (/) X-Archive-Number: 201204/12 X-Sequence-Number: 39348 dear all, i have come to face the following situation: -initially the server was 8.4.7 -i used pg_upgrade --link so that the upgrade would be quick -i created a new tablespace with the intention of moving all the indexes there (different partition) -when issueing a statement like 'alter index xxxx set tablespace new_tblsp' the data files of the index are moved to the new tablespace but the original files remain also on the data_8.4/base directory i tried on a test environment to manually delete the datafiles from the old location and there didn't seem to be any problem from the tests i made (full scan of the table using the specific index,vacuum etc)... so my questions are the following: 1)is this the expected behavior when altering an index whose data files come from a link on pg_upgrade? 2)if so, is it safe to manually 'delete' the old datafiles? 3)is there any other way of doing this procedure?i am in the process of trying to drop the old index to check if the space will be released. if so, i guess i could create it directly onto the new tablespace thx in advance for your insight -- View this message in context: http://postgresql.1045698.n5.nabble.com/alter-index-s-tablespace-from-default-after-pg-upgrade-link-tp5617549p5617549.html Sent from the PostgreSQL - admin mailing list archive at Nabble.com.