From: | Sameer Kumar <sameer(dot)kumar(at)ashnik(dot)com> |
---|---|
To: | Michael Paquier <michael(dot)paquier(at)gmail(dot)com> |
Cc: | Granthana Biswas <granthana(at)zedo(dot)com>, PostgreSQL General Discussion Forum <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: Correct query to check streaming replication lag |
Date: | 2014-01-21 04:30:38 |
Message-ID: | CADp-Sm46uOit0RRoeHr8_nTpNeeUyGsQsMk2mWupfswRsf=_Sw@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On Tue, Jan 21, 2014 at 12:12 PM, Michael Paquier <michael(dot)paquier(at)gmail(dot)com
> wrote:
> Mind you, here is a simple suggestion:
> SELECT application_name, pg_xlog_location_diff(sent_location,
> flush_location) AS replay_delta, sync_priority, sync_state FROM
> pg_stat_replication ORDER BY replay_delta ASC, application_name;
>
This is much more simple, but I guess would work only with v9.2 and higher
(?).
Best Regards,
*Sameer Kumar | Database Consultant*
*ASHNIK PTE. LTD. *101 Cecil Street, #11-11 Tong Eng Building, Singapore
069533
M : *+65 8110 0350* T: +65 6438 3504 | www.ashnik.com
www.facebook.com/ashnikbiz | www.twitter.com/ashnikbiz
[image: email patch]
This email may contain confidential, privileged or copyright material and
is solely for the use of the intended recipient(s).
From | Date | Subject | |
---|---|---|---|
Next Message | Michael Paquier | 2014-01-21 04:37:28 | Re: Correct query to check streaming replication lag |
Previous Message | Michael Paquier | 2014-01-21 04:12:29 | Re: Correct query to check streaming replication lag |