pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Daniel Jaenecke <jaenecke@smaxs.de>
To: pgsql-sql@postgresql.org
Subject: timestamp
Date: Wed, 12 Feb 2003 10:09:15 +0100
Message-ID: <20030212100915.296331a6.jaenecke@smaxs.de> (raw)

Hi!

I am rather new to PostGreSQL, having mainly used MySQL until now.
MySQL has a column type TIMESTAMP[1] which holds - as expected - a timestamp, but additionally this timestamp is being updated automatically on any UPDATE or INSERT operation.

Since this is a quite handy feature to keep track of latest changes I would like to create such a behavior for my PostGres tables too. But since I have no idea how to do it I would warml welcome any suggestion... :)

Thx 
dj

[1]
http://www.mysql.com/doc/en/DATETIME.html



view thread (13+ messages)  latest in thread

Message-ID: <20030212100915.296331a6.jaenecke@smaxs.de>
Permalink:  ../20030212100915.296331a6.jaenecke@smaxs.de/
Also on:    postgresql.org/message-id/20030212100915.296331a6.jaenecke@smaxs.de

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: jaenecke@smaxs.de
  Subject: Re: timestamp
  In-Reply-To: <20030212100915.296331a6.jaenecke@smaxs.de>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox