Re: Non-colliding auto generated names

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Non-colliding auto generated names
Дата
Msg-id 23820.1045583876@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Non-colliding auto generated names  (Christopher Kings-Lynne <chriskl@familyhealth.com.au>)
Список pgsql-patches
Christopher Kings-Lynne <chriskl@familyhealth.com.au> writes:
> If we wanted to stay consistent, then we should be renaming the constraint
> indexes whenever the table is renamed!

I thought about that, too, and I'd be in favor of it if it didn't have
problems of its own.  (The big one being that if the new main-table
name is longer or shorter than the old, you would have to redo the
whole derived-name-generation process, or run into possible truncation
problems.  So it leads to the same kind of loss of predictability I'm
griping about.)

            regards, tom lane

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: pg_avd
Следующее
От: Olleg Samoylov
Дата:
Сообщение: Re: pg_avd