Re: Generated column is not updated (Postgres 13)

Поиск
Список
Период
Сортировка
От Vitaly Ustinov
Тема Re: Generated column is not updated (Postgres 13)
Дата
Msg-id CAM_DEiX+P9YvpeYu_Dc6WoW=d2kcLAC2O=pT_Y+e_eYhBTSLPg@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Generated column is not updated (Postgres 13)  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Generated column is not updated (Postgres 13)  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-bugs
In a BEFORE trigger (PL/pgSQL) I can access not yet computed generated
columns via the "NEW" whole-row var. I can read from it (NULL), and I
can write to it, but the assigned value will be ignored.

This behavior seems obvious and well thought through to me. It's not
something app developers should do, because it wouldn't make sense,
but at least it's not forbidden and the server process does not crash
with a seg fault.

Is it okay with you that the patch 0002 introduces some inconsistency with that?

Regards,
Vitaly



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

Предыдущее
От: 'Bruce Momjian'
Дата:
Сообщение: Re: BUG #17020: meta command psql _eset does not clear the query buffer
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Generated column is not updated (Postgres 13)