From: | Venkata Balaji N <nag1010(at)gmail(dot)com> |
---|---|
To: | Matthew Byrne <mjw(dot)byrne(at)gmail(dot)com> |
Cc: | PostgreSQL Bugs <pgsql-bugs(at)postgresql(dot)org> |
Subject: | Re: ALTER INDEX not working in 9.5.1? |
Date: | 2016-03-07 06:37:52 |
Message-ID: | CAEyp7J8A3dM7NOhXs-mKwW3OPA1GO8UtUb6VNAxuD+wkod8BYw@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs |
On Sat, Mar 5, 2016 at 10:32 PM, Matthew Byrne <mjw(dot)byrne(at)gmail(dot)com> wrote:
> The commands "ALTER INDEX ... RENAME TO..." and "ALTER INDEX ... SET
> TABLESPACE ..." seem to work as expected in PostgreSQL 9.4.5 but in 9.5.1
> they fail with "ERROR: <index_name> is an index".
>
> I can't find anything in the docs which would explain this.
>
> Sample code:
>
> CREATE TABLE test AS SELECT 1 AS x; --Works fine
> CREATE INDEX test_idx ON test(x); --Works fine
> ALTER INDEX test_idx RENAME TO other_idx; --Works fine in 9.4.5, throws
> "is an index" error in 9.5.1
> ALTER INDEX test_idx SET TABLESPACE other_tablespace; --Works fine in
> 9.4.5, throws "is an index" error in 9.5.1
>
In PostgreSQL-9.5.1 - it works fine for me -
postgres=# alter index idx rename to test_idx;
ALTER INDEX
postgres=# alter index test_idx set tablespace tbs;
ALTER INDEX
As said upthread, It must be a trigger or some code blocking the ALTER
INDEX command.
Regards,
Venkata B N
Fujitsu Australia
From | Date | Subject | |
---|---|---|---|
Next Message | Matthew Byrne | 2016-03-07 07:34:39 | Re: ALTER INDEX not working in 9.5.1? |
Previous Message | David G. Johnston | 2016-03-07 06:16:27 | Re: ALTER INDEX not working in 9.5.1? |