Re: forcing a literal value in a column - Mailing list pgsql-general

From Karsten Hilbert
Subject Re: forcing a literal value in a column
Date
Msg-id 20030513164532.X564@hermes.hilbert.loc
Whole thread Raw
In response to Re: forcing a literal value in a column  (Tom Lane <tgl@sss.pgh.pa.us>)
List 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 by date:

Previous
From: Tom Lane
Date:
Subject: Re: forcing a literal value in a column
Next
From: Karsten Hilbert
Date:
Subject: Re: forcing a literal value in a column