BUG #15087: ALTER INDEX RENAME renames table if matches

From: PG Bug reporting form <noreply(at)postgresql(dot)org>
To: pgsql-bugs(at)lists(dot)postgresql(dot)org
Cc: etolnay(at)gmail(dot)com
Subject: BUG #15087: ALTER INDEX RENAME renames table if matches
Date: 2018-02-25 23:18:27
Message-ID: 151960070775.21248.1471444285595717214@wrigleys.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

The following bug has been logged on the website:

Bug reference: 15087
Logged by: Ezequiel Tolnay
Email address: etolnay(at)gmail(dot)com
PostgreSQL version: 10.0
Operating system: Windows 10
Description:

A table name mytable can be renamed to newtable via:

ALTER INDEX mytable RENAME TO newtable

This is probably incorrect. It should either raise an error (as it does with
ALTER TABLE if the name supplied is that of an index), or better, when
specified IF EXISTS, simply do nothing.

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Tomas Vondra 2018-02-26 00:20:25 Re: BUG #15087: ALTER INDEX RENAME renames table if matches
Previous Message PG Bug reporting form 2018-02-25 08:55:13 BUG #15086: Arrow keys do not work while using psql through SSH session