From: Terry Hampton <thampton@limacorp.com>
To: marie.tuite@edisonaffiliates.com
Cc: pgsql-admin@postgresql.org
Subject: Re: object creation date
Date: Fri, 12 Sep 2003 14:45:55 -0400
Message-ID: <3F621463.7040700@limacorp.com> (raw)
References: <IGELKLINGDMODABPOOFEEEEIFBAA.marie.tuite@edisonaffiliates.com>
Hello Marie,
In most of my tables, I have the same
two columns:
lastupdate TIMESTAMP not null default
('now'::text)::timestamp(8),
createdate TIMESTAMP not null default
('now'::text)::timestamp(8)
"createdate" is only written once, of course.
and populates automatically.
I have created a trigger to automaticaly change
"lastupdate" every time the record is updated.
I re-read your question however - and you mention
*table* creation date. Do you have tables
that are created dynamically ? Could you provide
a bit more detail ? How is table creation
date useful for you ?
Terry
Marie G. Tuite wrote:
> How can I identify table creation date as opposed to last modified?
>
> Thanks.
>
> -Marie
>
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: thampton@limacorp.com, marie.tuite@edisonaffiliates.com
Subject: Re: object creation date
In-Reply-To: <3F621463.7040700@limacorp.com>
References: <IGELKLINGDMODABPOOFEEEEIFBAA.marie.tuite@edisonaffiliates.com> <3F621463.7040700@limacorp.com>
* 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