| From: | Миша Тюрин <tmihail(at)bk(dot)ru> |
|---|---|
| To: | Vladimir Borodin <root(at)simply(dot)name> |
| Cc: | pgsql-general(at)postgresql(dot)org, Sergey Burladyan <eshkinkot(at)gmail(dot)com> |
| Subject: | Re: [GENERAL] Way to get timeline |
| Date: | 2015-07-22 16:34:56 |
| Message-ID: | 1437582896.833370907@f64.i.mail.ru |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
hi!
from master:
pg_xlogfile_name -- right!
from standby:
using replication prtotocol (example from version 92)
psql -h "$host" -F' ' -c 'IDENTIFY_SYSTEM' 'dbname=replication replication=true'
-- misha
>Понедельник, 20 июля 2015, 11:13 +03:00 от Vladimir Borodin <root(at)simply(dot)name>:
>
>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…
>https://simply.name
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Dean Rasheed | 2015-07-22 21:04:02 | Re: [9.5] next question: rls and indexes |
| Previous Message | Geoff Winkless | 2015-07-22 16:10:25 | Re: Delete rule does not prevent truncate |