Re: IDENTITY/GENERATED v36 Re: Final version of IDENTITY/GENERATED patch

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: IDENTITY/GENERATED v36 Re: Final version of IDENTITY/GENERATED patch
Дата
Msg-id 22177.1175701196@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: IDENTITY/GENERATED v36 Re: Final version of IDENTITY/GENERATED patch  (Zoltan Boszormenyi <zb@cybertec.at>)
Ответы Re: IDENTITY/GENERATED v36 Re: Final version of IDENTITY/GENERATED patch
Список pgsql-patches
Zoltan Boszormenyi <zb@cybertec.at> writes:
> Here's the new version with the modifications you requested.

I see another problem with this patch: the code added to
ATExecDropColumn is a crude hack.  It doesn't work anyway since this is
not the only possible way for columns to be dropped (another one that
comes to mind immediately is DROP TYPE ... CASCADE).  The only correct
way to handle things is to let the dependency mechanism do it.  I think
you would get the behavior you want if you make the generated columns
have AUTO rather than NORMAL dependencies on the columns they reference.

            regards, tom lane

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

Предыдущее
От: Zoltan Boszormenyi
Дата:
Сообщение: Re: IDENTITY/GENERATED v36 Re: Final version of IDENTITY/GENERATED patch
Следующее
От: Tom Lane
Дата:
Сообщение: Re: IDENTITY/GENERATED v36 Re: Final version of IDENTITY/GENERATED patch