From: daniele.varrazzo@gmail.com
To: pgsql-bugs@postgresql.org
Subject: BUG #6734: create table (like ...) fails if an index has a comment
Date: Fri, 13 Jul 2012 12:00:14 +0000
Message-ID: <E1SpeXe-0002yi-Rr@wrigleys.postgresql.org> (raw)
The following bug has been logged on the website:
Bug reference: 6734
Logged by: Daniele Varrazzo
Email address: daniele.varrazzo@gmail.com
PostgreSQL version: 9.1.4
Operating system: Linux
Description:
Weird, isn't it? Test case below.
Dropping the comment, the create table command works as expected. The
command fails with an: "ERROR: relation "foo2_f1_idx" already exists".
begin;
CREATE TABLE foo
(
id serial primary key,
f1 integer NOT NULL
);
CREATE INDEX foo_idx1 ON foo (f1);
CREATE INDEX foo_idx2 ON foo (f1) WHERE id > 10;
COMMENT ON INDEX foo_idx2 IS 'whatever';
create table foo2 (like foo including all);
rollback;
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: daniele.varrazzo@gmail.com
Subject: Re: BUG #6734: create table (like ...) fails if an index has a comment
In-Reply-To: <E1SpeXe-0002yi-Rr@wrigleys.postgresql.org>
References: <E1SpeXe-0002yi-Rr@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