From: Tom Lane <tgl@sss.pgh.pa.us>
To: Daniele Varrazzo <daniele.varrazzo@gmail.com>
Cc: Ryan Kelly <rpkelly22@gmail.com>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #6734: create table (like ...) fails if an index has a comment
Date: Fri, 13 Jul 2012 11:11:41 -0400
Message-ID: <1522.1342192301@sss.pgh.pa.us> (raw)
In-Reply-To: <CA+mi_8YRuJatLZutrwkGPhaKbEVHAGVhA+obTpq-ONDnrTFxrw@mail.gmail.com>
References: <E1SpeXe-0002yi-Rr@wrigleys.postgresql.org>
<20120713132419.GB2369@llserver.lakeliving.com>
<CA+mi_8YRuJatLZutrwkGPhaKbEVHAGVhA+obTpq-ONDnrTFxrw@mail.gmail.com>
Daniele Varrazzo <daniele.varrazzo@gmail.com> writes:
> Wouldn't it be better to call the indexes NEWTABLE_OLDINDEXNAME?
Then the CREATE LIKE command would fail altogether if that name were
already taken. Postponing the selection of the index name to the time
when DefineIndex runs is really the only safe thing.
regards, tom lane
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, rpkelly22@gmail.com
Subject: Re: BUG #6734: create table (like ...) fails if an index has a comment
In-Reply-To: <1522.1342192301@sss.pgh.pa.us>
References: <E1SpeXe-0002yi-Rr@wrigleys.postgresql.org> <20120713132419.GB2369@llserver.lakeliving.com> <CA+mi_8YRuJatLZutrwkGPhaKbEVHAGVhA+obTpq-ONDnrTFxrw@mail.gmail.com> <1522.1342192301@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