Re: BUG #6734: create table (like ...) fails if an index has a comment - Mailing list pgsql-bugs

From Tom Lane
Subject Re: BUG #6734: create table (like ...) fails if an index has a comment
Date
Msg-id 1522.1342192301@sss.pgh.pa.us
Whole thread Raw
In response to Re: BUG #6734: create table (like ...) fails if an index has a comment  (Daniele Varrazzo <daniele.varrazzo@gmail.com>)
Responses Re: BUG #6734: create table (like ...) fails if an index has a comment  (Daniele Varrazzo <daniele.varrazzo@gmail.com>)
List pgsql-bugs
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

pgsql-bugs by date:

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