Re: Determining when a row was inserted

From: Martijn van Oosterhout <kleptog(at)svana(dot)org>
To: Alex Turner <armtuk(at)gmail(dot)com>
Cc: Wiebe de Jong <wiebedj(at)shaw(dot)ca>, pgsql-general(at)postgresql(dot)org
Subject: Re: Determining when a row was inserted
Date: 2005-06-03 18:59:59
Message-ID: 20050603185959.GB4280@svana.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

> On 6/3/05, Wiebe de Jong <wiebedj(at)shaw(dot)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(at)svana(dot)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.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Wiebe de Jong 2005-06-03 19:05:14 Re: Determining when a row was inserted
Previous Message Scott Marlowe 2005-06-03 18:54:33 Re: Determining when a row was inserted