Matthew Byrne <mjw.byrne@gmail.com> writes:
> 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".
[ scratches head... ] Your test case works OK for me. Admittedly,
I'm checking 9.5-branch-from-a-day-or-two-back rather than exactly
release 9.5.1; but if we'd broken and then fixed something as basic
as that, I expect we'd know about it.
Is this on a clean compile of 9.5.1 community sources? Using what
compiler exactly, on what platform? Maybe you've got something
like a badly-written event trigger installed?
regards, tom lane