| From: | Oliver Elphick <olly(at)lfix(dot)co(dot)uk> |
|---|---|
| To: | Andy Kriger <akriger(at)greaterthanone(dot)com> |
| Cc: | Pgsql-General <pgsql-general(at)postgresql(dot)org> |
| Subject: | Re: how do i find out when a record was created/modified? |
| Date: | 2002-11-22 10:12:56 |
| Message-ID: | 1037959976.1043.35.camel@linda |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
On Thu, 2002-11-21 at 23:07, Andy Kriger wrote:
> if i have a table full of data, is there metadata stored somewhere by psql
> that can tell me when each record was created/modified? or do i have to
> track this manually with datetime columns that default to now()?
Defaulting to now() will only track inserts, not updates.
There is a contrib module, spi/moddatetime, that will do both.
--
Oliver Elphick Oliver(dot)Elphick(at)lfix(dot)co(dot)uk
Isle of Wight, UK
http://www.lfix.co.uk/oliver
GPG: 1024D/3E1D0C1C: CA12 09E0 E8D5 8870 5839 932A 614D 4C34 3E1D 0C1C
========================================
"Can two walk together, except they be agreed?"
Amos 3:3
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Oliver Elphick | 2002-11-22 10:28:28 | Re: How to know and change the owner of a table in psql ? |
| Previous Message | Oliver Elphick | 2002-11-22 10:02:36 | Re: &main::execute undefined? |