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
pgsql-bugs by date
|Next:||From: Craig Ringer||Date: 2012-07-13 15:15:55|
|Subject: Re: BUG #6735: PANIC: 42501: could not open control file "global/pg_control":
|Previous:||From: Tom Lane||Date: 2012-07-13 15:05:59|
|Subject: Re: BUG #6734: create table (like ...) fails if an index has a comment|