Re: forcing a literal value in a column

From: Karsten Hilbert <Karsten(dot)Hilbert(at)gmx(dot)net>
To: PostgreSQL General <pgsql-general(at)postgresql(dot)org>
Subject: Re: forcing a literal value in a column
Date: 2003-05-13 14:43:16
Message-ID: 20030513164316.W564@hermes.hilbert.loc
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

> I'm guessing you mean that you want the two columns to always be the
> user/time of the row's last modification, not always the current user and
> current time (of who/when a select is done).
Yes. I was imprecise.

> Assuming you want an automatically modified field, probably not. As you
> noted, defaults aren't automatically propogated to columns on update.
> Triggers are probably the best way to do it.
Thanks. I've been implementing the triggers already. Seems to
work as expected.

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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Skip Montanaro 2003-05-13 14:43:32 Broken upgrade_tips link
Previous Message Tom Lane 2003-05-13 14:34:27 Re: forcing a literal value in a column