From: | Itagaki Takahiro <itagaki(dot)takahiro(at)gmail(dot)com> |
---|---|
To: | Simon Riggs <simon(at)2ndquadrant(dot)com> |
Cc: | Magnus Hagander <magnus(at)hagander(dot)net>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: system views for walsender activity |
Date: | 2011-01-07 11:42:08 |
Message-ID: | AANLkTikM2Nc6hqiT6FaQiHStymRFWc=5fF3D7PMz38gg@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Fri, Jan 7, 2011 at 19:20, Simon Riggs <simon(at)2ndquadrant(dot)com> wrote:
>> "pg_stat_replication" seems to be the most understandable name.
>
> Please go with whatever you think best for now. I'm sure people will ask
> for different names later anyway. Let's get this committed soon, to
> reduce later patch conflicts. Thanks.
>
> Please add sent_location, I will add others.
OK, I added a view named s "pg_stat_replication". The view is basically
based on Simon's patch, but I just skipped unused WalSnd entreis in
WalSndCtl rather than return NULLs. The applied patch attached.
I expect we will have two views for master and standby servers:
* pg_stat_replication
Activity of wal senders in master server.
* pg_stat_standby (not yet)
Activity of a wal receiver and a recovery process in standby servers.
I didn't use pg_stat_wal_sender/receiver as their names because standby
activity in slaves could contain not only a wal receiver but also a
recovery process.
--
Itagaki Takahiro
Attachment | Content-Type | Size |
---|---|---|
pg_stat_replication-20110107.patch | application/octet-stream | 10.3 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Itagaki Takahiro | 2011-01-07 11:42:23 | pgsql: New system view pg_stat_replication displays activity of wal sen |
Previous Message | Joachim Wieland | 2011-01-07 11:41:38 | Re: Snapshot synchronization, again... |