Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c73zX-0005mH-TN for pgsql-bugs@arkaria.postgresql.org; Wed, 16 Nov 2016 17:27:24 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1c73zX-0001Bq-GJ for pgsql-bugs@arkaria.postgresql.org; Wed, 16 Nov 2016 17:27:23 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1c73ys-0008Sb-Je for pgsql-bugs@postgresql.org; Wed, 16 Nov 2016 17:26:42 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1c73yq-0006wr-5l for pgsql-bugs@postgresql.org; Wed, 16 Nov 2016 17:26:41 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id uAGHQbJP023524; Wed, 16 Nov 2016 12:26:37 -0500 From: Tom Lane To: Michael Paquier cc: sudalai , PostgreSQL mailing lists Subject: Re: Index file got removed In-reply-to: References: <1479294998857-5930602.post@n3.nabble.com> Comments: In-reply-to Michael Paquier message dated "Wed, 16 Nov 2016 09:22:51 -0800" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <23522.1479317197.1@sss.pgh.pa.us> Date: Wed, 16 Nov 2016 12:26:37 -0500 Message-ID: <23523.1479317197@sss.pgh.pa.us> X-Pg-Spam-Score: -4.8 (----) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org Michael Paquier writes: > On Wed, Nov 16, 2016 at 3:16 AM, sudalai wrote: >> I am creating a table test and index for that table on default tablespace. >> Then i'm changing default_tablespace to some other tablespace. >> After that altering one of the index column. >> This alter operation moves the index to new default_tablespace, but index >> file is missing in new tablespace. > I am just digging into it, instinctively that would be something in > tablecmds.c.. I'm betting that where it reconstructs textual commands to create the new indexes, it's forgotten to do anything about tablespaces. regards, tom lane -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs