From: PG Bug reporting form <noreply@postgresql.org>
To: pgsql-bugs@lists.postgresql.org
Cc: etolnay@gmail.com
Subject: BUG #15087: ALTER INDEX RENAME renames table if matches
Date: Sun, 25 Feb 2018 23:18:27 +0000
Message-ID: <151960070775.21248.1471444285595717214@wrigleys.postgresql.org> (raw)
The following bug has been logged on the website:
Bug reference: 15087
Logged by: Ezequiel Tolnay
Email address: etolnay@gmail.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.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: noreply@postgresql.org, etolnay@gmail.com
Subject: Re: BUG #15087: ALTER INDEX RENAME renames table if matches
In-Reply-To: <151960070775.21248.1471444285595717214@wrigleys.postgresql.org>
References: <151960070775.21248.1471444285595717214@wrigleys.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox