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

From Tom Lane
Subject Re: Determining when a row was inserted
Date
Msg-id 12132.1117826790@sss.pgh.pa.us
Whole thread Raw
In response to Re: Determining when a row was inserted  (Scott Marlowe <smarlowe@g2switchworks.com>)
Responses Re: Determining when a row was inserted  (Greg Stark <gsstark@mit.edu>)
List pgsql-general
Scott Marlowe <smarlowe@g2switchworks.com> writes:
> On Fri, 2005-06-03 at 13:40, 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...

> That kind of designing is what leads to bloated, overweight programs...

Agreed --- it is much more important to be sure that we have the
features needed to let people add these sorts of behaviors for
themselves (in this case, triggers).

As it happens, the original Berkeley-era Postgres did indeed add
creation and deletion timestamps to every row, as part of their "time
travel" feature.  That got ripped out very soon after the code left
Berkeley, because the overhead was just unacceptable ... and our
threshold for unacceptable performance was a whole lot higher then
than it is today ...

It's worth noting in connection with this Joe Hellerstein's description
of Berkeley-era Postgres:
http://archives.postgresql.org/pgsql-hackers/2002-06/msg00085.php

            regards, tom lane

pgsql-general by date:

Previous
From: Scott Marlowe
Date:
Subject: Re: Determining when a row was inserted
Next
From: Brad Nicholson
Date:
Subject: Re: postgresql books