Search Postgresql Archives

Why is there no object create date is the catalogs?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




Can anyone tell me why there is no "relcreated" column in pg_class to track the creation date of an object?

It seems to me it would make sense to have one as it would facilitate auditing of when objects are created. In addition, it would also facilitate the dropping of objects that have exceeded a certain age.

EG: SELECT 'DELETE TABLE ' || relname || ';'
      FROM pg_class
     WHERE relkind = 'r'
       AND relcreated > current_timestamp - INTERVAL ' 1 year';

Adding that column should be relatively easy and would not break backwards compatiblity with previous versions.
--
Melvin Davidson

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux