triggers - Mailing list pgsql-novice

From paul butler
Subject triggers
Date
Msg-id T5a692a4bbdac1785ed0d1@pcow035o.blueyonder.co.uk
Whole thread Raw
Responses Re: triggers
List pgsql-novice
Dear list,
Just starting out with postgresql, I've got a 18 table db listing info
on organisations and on the main organisation table I've got an
update column (timestamp), to keep a record of the last time
information was updated for each organisation.
Obviously I can do it on the client app, but I think table /row
triggers might be a better solution
is there a straight forward way of, on updating any of the
organisation tables I can update the update column for that
organisation?

eg On update orgsubtable wher orgId = X
    trigger update orgMainTable.timestamp Values(now()) where
orgId = X

TIA

Paul Butler

pgsql-novice by date:

Previous
From: Mathieu Arnold
Date:
Subject: Re: [ADMIN] Hardware needed for 15,000,000 record DB?
Next
From: "paul butler"
Date:
Subject: triggers