pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
object creation date
3+ messages / 3 participants
[nested] [flat]

* object creation date
@ 2003-09-12 16:50  Marie G. Tuite <marie.tuite@edisonaffiliates.com>
  0 siblings, 2 replies; 3+ messages in thread

From: Marie G. Tuite @ 2003-09-12 16:50 UTC (permalink / raw)
  To: pgsql-admin

How can I identify table creation date as opposed to last modified?

Thanks.

-Marie




^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: object creation date
@ 2003-09-12 18:14  Peter Eisentraut <peter_e@gmx.net>
  parent: Marie G. Tuite <marie.tuite@edisonaffiliates.com>
  1 sibling, 0 replies; 3+ messages in thread

From: Peter Eisentraut @ 2003-09-12 18:14 UTC (permalink / raw)
  To: Marie G. Tuite <marie.tuite@edisonaffiliates.com>; +Cc: pgsql-admin

Marie G. Tuite writes:

> How can I identify table creation date as opposed to last modified?

Not unless you keep track of it yourself.

-- 
Peter Eisentraut   peter_e@gmx.net




^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: object creation date
@ 2003-09-12 18:45  Terry Hampton <thampton@limacorp.com>
  parent: Marie G. Tuite <marie.tuite@edisonaffiliates.com>
  1 sibling, 0 replies; 3+ messages in thread

From: Terry Hampton @ 2003-09-12 18:45 UTC (permalink / raw)
  To: marie.tuite@edisonaffiliates.com; +Cc: pgsql-admin


	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
> 





^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2003-09-12 18:45 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2003-09-12 16:50 object creation date Marie G. Tuite <marie.tuite@edisonaffiliates.com>
2003-09-12 18:14 ` Peter Eisentraut <peter_e@gmx.net>
2003-09-12 18:45 ` Terry Hampton <thampton@limacorp.com>

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