Re: forcing a literal value in a column

Поиск
Список
Период
Сортировка
От Karsten Hilbert
Тема Re: forcing a literal value in a column
Дата
Msg-id 20030513164532.X564@hermes.hilbert.loc
обсуждение исходный текст
Ответ на Re: forcing a literal value in a column  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
Tom,

> The best way to achieve the effect you want is probably with a BEFORE
> INSERT OR UPDATE trigger that explicitly sets NEW.modify_when = now().
> Having done that, you don't need either the default or the check,
> because there is no way to override the trigger's action (except with
> another trigger).
Did so. Works. Thanks.

Karsten
--
GPG key ID E4071346 @ wwwkeys.pgp.net
E167 67FD A291 2BEA 73BD  4537 78B9 A9F9 E407 1346


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: forcing a literal value in a column
Следующее
От: Karsten Hilbert
Дата:
Сообщение: Re: forcing a literal value in a column