Re: Record creation date - Mailing list pgsql-general

From ptjm@interlog.com (Patrick TJ McPhee)
Subject Re: Record creation date
Date
Msg-id 12fm3t0l3que4b0@corp.supernews.com
Whole thread Raw
In response to Re: Cutting the Gborg throat  ("Dave Page" <dpage@vale-housing.co.uk>)
List pgsql-general
In article <44F6C908.9080908@interactivegaming.com>,
Rafael Barrera Oro <rbarrera@interactivegaming.com> wrote:

% Hello everyone! i am checking a database due to some inconsintencies and
% i was wandering if its possible to find out the creation date of a
% record (using the oid, whatever...). Maybe i am saying something stupid
% (since i am no DB expert) so if this is the case, please point it out
% gently.

Whatever: xmin, xmax

These give the range of transaction ids over which the data in a row are
valid. If xmin is 2, it means the change was made long enough ago that
vacuum has frozen it to avoid transaction wrap-around (or that you ran
vacuum freeze). Otherwise, the xmin can be compared to the xmin of some
table with a timestamp to get the approximate time the record was last
changed.
--

Patrick TJ McPhee
North York  Canada
ptjm@interlog.com

pgsql-general by date:

Previous
From: "Ben Trewern"
Date:
Subject: pgFoundry.org not working!
Next
From: zeljko
Date:
Subject: compressed protocol