Re: Internal time stamps? - Mailing list pgsql-novice

From APseudoUtopia
Subject Re: Internal time stamps?
Date
Msg-id 27ade5280911251951l60ffd56emab181d861024e58e@mail.gmail.com
Whole thread Raw
In response to Internal time stamps?  (Aaron <niccoli00@yahoo.com>)
List pgsql-novice
On Tue, Nov 24, 2009 at 1:26 PM, Aaron <niccoli00@yahoo.com> wrote:
> Does postgresql have any kind of internal time stamps for a table entry?  I
> can create a field that is 'timestamp' and store it there, I was just
> wondering if it was already done internally.  I'd hate to duplicate
> something it already does. :-)
> If it does store it internally, how do you access it?
> Thanks!!
> Aaron

To the best of my knowledge:
Internal timestamps do not exist. If you want to store a timestamp of
when a row was inserted, just use a TIMESTAMP type column (with- or
without- time zone; WITH TIME ZONE is recommended) and insert
CURRENT_TIMESTAMP or NOW or whatever function you wanna use.

pgsql-novice by date:

Previous
From: Aaron
Date:
Subject: Internal time stamps?
Next
From: Rikard Bosnjakovic
Date:
Subject: Re: Merging two GROUP BY-queries