Way to get timeline

Поиск
Список
Период
Сортировка
От Vladimir Borodin
Тема Way to get timeline
Дата
Msg-id E47A0A7C-923B-40FE-8B02-A77F881BD101@simply.name
обсуждение исходный текст
Ответы Re: [GENERAL] Way to get timeline  (Миша Тюрин <tmihail@bk.ru>)
Список pgsql-general
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…

В списке pgsql-general по дате отправления:

Предыдущее
От: Amitabh Kant
Дата:
Сообщение: Re: Upgrade postgres cluster on FreeBSD using pg_upgrade
Следующее
От: Francisco Olarte
Дата:
Сообщение: Re: INSERT ... ON CONFLICT DO UPDATE