Re: Index file got removed - Mailing list pgsql-bugs

From Tom Lane
Subject Re: Index file got removed
Date
Msg-id 23523.1479317197@sss.pgh.pa.us
Whole thread Raw
In response to Re: Index file got removed  (Michael Paquier <michael.paquier@gmail.com>)
Responses Re: Index file got removed
List pgsql-bugs
Michael Paquier <michael.paquier@gmail.com> writes:
> On Wed, Nov 16, 2016 at 3:16 AM, sudalai <sudalait2@gmail.com> 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

pgsql-bugs by date:

Previous
From: Michael Paquier
Date:
Subject: Re: Index file got removed
Next
From: Michael Paquier
Date:
Subject: Re: BUG #14423: Fail to connect to DB