pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: daniele.varrazzo@gmail.com
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #6734: create table (like ...) fails if an index has a comment
Date: Mon, 16 Jul 2012 13:27:41 -0400
Message-ID: <13615.1342459661@sss.pgh.pa.us> (raw)
In-Reply-To: <E1SpeXe-0002yi-Rr@wrigleys.postgresql.org>
References: <E1SpeXe-0002yi-Rr@wrigleys.postgresql.org>

daniele.varrazzo@gmail.com writes:
> 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);

I've applied a fix for this in 9.2 and up.  The issue exists since
CREATE TABLE LIKE grew the ability to copy comments, in 9.0, but
it seems too risky to fix in already-released branches.

			regards, tom lane



view thread (7+ messages)

Message-ID: <13615.1342459661@sss.pgh.pa.us>
Permalink:  ../13615.1342459661@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/13615.1342459661@sss.pgh.pa.us

 · 

reply

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: tgl@sss.pgh.pa.us, daniele.varrazzo@gmail.com
  Subject: Re: BUG #6734: create table (like ...) fails if an index has a comment
  In-Reply-To: <13615.1342459661@sss.pgh.pa.us>
  References: <E1SpeXe-0002yi-Rr@wrigleys.postgresql.org> <13615.1342459661@sss.pgh.pa.us>

* 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