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

Поиск
Список
Период
Сортировка
От Daniele Varrazzo
Тема Re: BUG #6734: create table (like ...) fails if an index has a comment
Дата
Msg-id CA+mi_8YBWUZ8dL_do=kmK1b-ONcZs3Cn0mZGb0QTQ5Gc3ONz_Q@mail.gmail.com
обсуждение исходный текст
Ответ на Re: BUG #6734: create table (like ...) fails if an index has a comment  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-bugs
On Fri, Jul 13, 2012 at 4:11 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> 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.

I've actually suggested to keep the numeric suffix to disambiguate in
case the name is already taken, as I assume the current "create like"
does. However this is not strictly related to the bug, it's more an
usability problem, so won't bother you with it anymore.

-- Daniele

В списке pgsql-bugs по дате отправления:

Предыдущее
От: Craig Ringer
Дата:
Сообщение: Re: BUG #6735: PANIC: 42501: could not open control file "global/pg_control": Permission denied
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: pg_basebackup de.po: Wrong translation