Re: BUG #6734: create table (like ...) fails if an index has a comment

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Daniele Varrazzo <daniele(dot)varrazzo(at)gmail(dot)com>
Cc: Ryan Kelly <rpkelly22(at)gmail(dot)com>, pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #6734: create table (like ...) fails if an index has a comment
Date: 2012-07-13 15:11:41
Message-ID: 1522.1342192301@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Daniele Varrazzo <daniele(dot)varrazzo(at)gmail(dot)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

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Craig Ringer 2012-07-13 15:15:55 Re: BUG #6735: PANIC: 42501: could not open control file "global/pg_control": Permission denied
Previous Message Tom Lane 2012-07-13 15:05:59 Re: BUG #6734: create table (like ...) fails if an index has a comment