Re: BUG #19019: Feature Request: allow the use of column reference in DEFAULT expression

Поиск
Список
Период
Сортировка
От Laurenz Albe
Тема Re: BUG #19019: Feature Request: allow the use of column reference in DEFAULT expression
Дата
Msg-id 8950df651b0dbaee287bbd70dc057f696313d4d4.camel@cybertec.at
обсуждение исходный текст
Ответ на BUG #19019: Feature Request: allow the use of column reference in DEFAULT expression  (PG Bug reporting form <noreply@postgresql.org>)
Список pgsql-bugs
On Wed, 2025-08-13 at 11:36 +0000, PG Bug reporting form wrote:
> As it is possible in some other SQL RDBMS, it would be useful to allow the
> use of column reference in DEFAULT expression.

You can use a BEFORE INSERT trigger for that.

If you allow columns in a DEFAULT expression, would that use the column value
from before or after the BEFORE triggers run?

Yours,
Laurenz Albe



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