Search Postgresql Archives

Re: Date/time of last commit

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

 



Tom Spencer wrote:
> I need to compare the age of some data files against the "age" (i.e.
> time of last commit) of the database.  If the data files are newer
> then the database needs to be rebuilt.
> 
> I can kludge together a solution but by far the cleanest solution
> would be to just ask "what time was the last commit?"

Only so long as nothing else updates a table. Which would mean not
running autovacuum etc.

Simplest solution would be to have an "import_events" table and just add
a row to that every time you import.

-- 
  Richard Huxton
  Archonet Ltd

-- 
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general

[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