Re: Determining when a row was inserted - Mailing list pgsql-general

From Martijn van Oosterhout
Subject Re: Determining when a row was inserted
Date
Msg-id 20050603185959.GB4280@svana.org
Whole thread Raw
In response to Re: Determining when a row was inserted  (Alex Turner <armtuk@gmail.com>)
Responses Re: Determining when a row was inserted  (Alex Turner <armtuk@gmail.com>)
List pgsql-general
> On 6/3/05, Wiebe de Jong <wiebedj@shaw.ca> wrote:
> >
> > The way I do it is to add a timestamp field with a default value of now().
> > Unfortunately, this won't help with any records that have already been
> > created.
On Fri, Jun 03, 2005 at 02:40:08PM -0400, Alex Turner wrote:
> One might even suggest that this should really be a default for all tables
> everywhere, because at some time or another, someone wants to know when
> something got put in the database...

Except it's still a complete waste of space for most tables. People
have been arguing for years that OIDs are a waste of space and now
they've been made optional and will soon default to off. There's not
likely to be support to add another field in it's place.

Just like timetravel was removed from the core given that most people
don't need it and it's prohibitive in diskspace usage. If you want it,
enable it yourself.

Have a nice day.
--
Martijn van Oosterhout   <kleptog@svana.org>   http://svana.org/kleptog/
> Patent. n. Genius is 5% inspiration and 95% perspiration. A patent is a
> tool for doing 5% of the work and then sitting around waiting for someone
> else to do the other 95% so you can sue them.

Attachment

pgsql-general by date:

Previous
From: Scott Marlowe
Date:
Subject: Re: Determining when a row was inserted
Next
From: "Gevik babakhani"
Date:
Subject: postgresql books