Re: querying the age of a row - Mailing list pgsql-general

From brian
Subject Re: querying the age of a row
Date
Msg-id 4668517E.9060503@zijn-digital.com
Whole thread Raw
In response to Re: querying the age of a row  ("Lonni J Friedman" <netllama@gmail.com>)
List pgsql-general
Lonni J Friedman wrote:
> Unfortunately, its too late now.  The database (and its tables) have
> been around for a while, so even if I added this column, it wouldn't
> help me for the thousands of pre-existing rows.  Thanks though.
>

Please don't top-post.

Assuming that the majority of the pre-existing rows are more than 24
hours old, there probably wouldn't be any harm in altering the table
with the new column and assigning all present rows the timestamp for the
moment you do this. Then just wait at least 24 hours before doing
whatever it is you wish to do.

Not perfect, but it doesn't seem like it would be a problem.

brian

pgsql-general by date:

Previous
From: Jeff Ross
Date:
Subject: Re: Generate random password
Next
From: Guy Fraser
Date:
Subject: Re: Creditcard Number Security was Re: Encrypted column