Re: Index file got removed

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Michael Paquier <michael(dot)paquier(at)gmail(dot)com>
Cc: sudalai <sudalait2(at)gmail(dot)com>, PostgreSQL mailing lists <pgsql-bugs(at)postgresql(dot)org>
Subject: Re: Index file got removed
Date: 2016-11-16 17:26:37
Message-ID: 23523.1479317197@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Michael Paquier <michael(dot)paquier(at)gmail(dot)com> writes:
> On Wed, Nov 16, 2016 at 3:16 AM, sudalai <sudalait2(at)gmail(dot)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

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Michael Paquier 2016-11-16 17:26:52 Re: BUG #14423: Fail to connect to DB
Previous Message Michael Paquier 2016-11-16 17:22:51 Re: Index file got removed