Re: declare column update expression - Mailing list pgsql-general

From Pavel Stehule
Subject Re: declare column update expression
Date
Msg-id 162867790809110101x162c5606k3ae3ec6f3ec1612d@mail.gmail.com
Whole thread Raw
In response to declare column update expression  ("Chris Velevitch" <chris.velevitch@gmail.com>)
Responses Re: declare column update expression
List pgsql-general
Hello,

2008/9/11 Chris Velevitch <chris.velevitch@gmail.com>:
> In 7.4, how do I declare that a column in a table is to be
> automatically set to the value of some fixed expression whenever a row
> is updated?
>
> Eg column last_modified is always set to current_timestamp
>

you should to use trigger

regards
Pavel Stehule

>
>
> Chris
> --
> Chris Velevitch
> Manager - Adobe Platform Users Group, Sydney
> m: 0415 469 095
> www.apugs.org.au
>
> Adobe Platform Users Group, Sydney
> September meeting: It's Going To Be Brilliant
> Date: Mon 29th September 6pm for 6:30 start
> Details and RSVP on http://apugs2008september.eventbrite.com
>
> --
> Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-general
>

pgsql-general by date:

Previous
From: Dean Rasheed
Date:
Subject: Re: No error when column doesn't exist
Next
From: "Artis Caune"
Date:
Subject: Re: plpgsql return select from multiple tables