Search Postgresql Archives

Way to get timeline

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

 



Hi all.

What is the best way to get current timeline of host? Right now I can imagine two variants:

1. Do checkpoint and read it from control file.
2. Do something like "SELECT substr(pg_xlogfile_name(pg_current_xlog_location()), 1, 8)".

Both variants seem to be a bit tricky. Is there a way better?

Thanks.

--
May the force be with you…


[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