Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Pgsql Admin > Re: column: on ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 3 of 6 Topic 4962 of 5167
Post > Topic >>

Re: column: on update update?

by michael.monnerie@[EMAIL PROTECTED] (Michael Monnerie) May 7, 2008 at 04:49 PM

--nextPart8854530.sy9rH7N5HH
Content-Type: text/plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

On Mittwoch, 7. Mai 2008 Richard Broersma wrote:
> Well you have two options. =A0The perferred method would be to have
> your application include an update to your lastupdate field whenever
> anyother rows are updated.

But as we speak about SpamAssassin, an external project, I do not want=20
to patch every new version that comes out. Maybe they include it once,=20
but it isn't currently so I need the db do it.

> the other option is to add an after update trigger, and manually set
> lastupdate then.

Would that be correct? I never did it and looked purely into docs:

CREATE FUNCTION awlupdate()
    AS 'UPDATE awl SET lastupdate=3DCURRENT_TIMESTAMP;'
    LANGUAGE SQL;

CREATE TRIGGER awlupdate AFTER UPDATE ON awl FOR EACH ROW
EXECUTE PROCEDURE awlupdate();

mfg zmi
=2D-=20
// Michael Monnerie, Ing.BSc    -----      http://it-management.at
// Tel: 0676/846 914 666                      .network.your.ideas.
// PGP Key:         "curl -s http://zmi.at/zmi.asc
| gpg --im****t"
// Fingerprint: AC19 F9D5 36ED CD8A EF38  500E CE14 91F7 1C12 09B4
// Keyserver: www.keyserver.net                   Key-ID: 1C1209B4

--nextPart8854530.sy9rH7N5HH
Content-Type: application/pgp-signature; name=signature.asc 
Content-Description: This is a digitally signed message part.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.4-svn0 (GNU/Linux)

iD8DBQBIIcFfzhSR9xwSCbQRAsMEAKCMHwhB8LjN8bFU2UU8B2Yzcr2IFwCgoYo1
dkw6KWtNIf06cHK96Y/lde4=
=Kany
-----END PGP SIGNATURE-----

--nextPart8854530.sy9rH7N5HH--
 




 6 Posts in Topic:
column: on update update?
michael.monnerie@[EMAIL P  2008-05-07 10:50:41 
Re: column: on update update?
richard.broersma@[EMAIL P  2008-05-07 06:23:04 
Re: column: on update update?
michael.monnerie@[EMAIL P  2008-05-07 16:49:03 
Re: column: on update update?
gergely.czuczy@[EMAIL PRO  2008-05-07 16:52:26 
Re: column: on update update?
tgl@[EMAIL PROTECTED] (T  2008-05-07 11:27:54 
Re: column: on update update? [solved]
michael.monnerie@[EMAIL P  2008-05-08 09:41:03 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Wed Aug 20 8:09:33 CDT 2008.