Re: ALTER TABLE ... ADD COLUMN ... DEFAULT with volatile function loses DML

Поиск
Список
Период
Сортировка
От Jeff Davis
Тема Re: ALTER TABLE ... ADD COLUMN ... DEFAULT with volatile function loses DML
Дата
Msg-id 81c8079b2db02ffffb6a6a99523cd87047811963.camel@j-davis.com
обсуждение исходный текст
Ответ на Re: ALTER TABLE ... ADD COLUMN ... DEFAULT with volatile function loses DML  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-bugs
On Tue, 2025-11-04 at 13:22 -0500, Tom Lane wrote:
> Hmm ... ideally we'd throw an error for that.  CheckTableNotInUse()
> intends to prevent some similar cases, but it misses this one because
> ALTER TABLE is the outermost command and there's no check performed
> at the inner UPDATE.  Not sure how hard we need to work at preventing
> people from shooting themselves in the foot, though.

I poked around at a few ideas and they seemed to get invasive. Perhaps
the cure is worse than the disease, unless someone has an idea.

Regards,
    Jeff Davis




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