Re: [HACKERS] system views for walsender activity

2011-01-13 Thread Magnus Hagander
On Thu, Jan 13, 2011 at 18:43, Robert Haas wrote: > On Thu, Jan 13, 2011 at 11:08 AM, Magnus Hagander wrote: >> On Wed, Jan 12, 2011 at 03:03, Robert Haas wrote: >>> On Tue, Jan 11, 2011 at 7:24 AM, Magnus Hagander >>> wrote: > No, do this at top > > if (walsnd->state == state) >>>

Re: [HACKERS] system views for walsender activity

2011-01-13 Thread Robert Haas
On Thu, Jan 13, 2011 at 11:08 AM, Magnus Hagander wrote: > On Wed, Jan 12, 2011 at 03:03, Robert Haas wrote: >> On Tue, Jan 11, 2011 at 7:24 AM, Magnus Hagander wrote: No, do this at top if (walsnd->state == state)  return; Keep spinlocks when actually setting it. >

Re: [HACKERS] system views for walsender activity

2011-01-13 Thread Magnus Hagander
On Wed, Jan 12, 2011 at 03:03, Robert Haas wrote: > On Tue, Jan 11, 2011 at 7:24 AM, Magnus Hagander wrote: >>> No, do this at top >>> >>> if (walsnd->state == state) >>>  return; >>> >>> Keep spinlocks when actually setting it. > > I think this is safe... > >> Aha. Thanks for the pointers, pfa a

Re: [HACKERS] system views for walsender activity

2011-01-11 Thread Andrew Dunstan
On 01/11/2011 10:24 PM, Shigeru HANADA wrote: On Tue, 11 Jan 2011 13:24:33 +0100 Magnus Hagander wrote: Aha. Thanks for the pointers, pfa a new version. Changing pg_stat replication view would require to fix regression test "rule". Please find attached patch. I have just committed a fix

Re: [HACKERS] system views for walsender activity

2011-01-11 Thread Shigeru HANADA
On Tue, 11 Jan 2011 13:24:33 +0100 Magnus Hagander wrote: > Aha. Thanks for the pointers, pfa a new version. Changing pg_stat replication view would require to fix regression test "rule". Please find attached patch. Regards, -- Shigeru Hanada rule_test.patch Description: Binary data -- Sent

Re: [HACKERS] system views for walsender activity

2011-01-11 Thread Robert Haas
On Tue, Jan 11, 2011 at 7:24 AM, Magnus Hagander wrote: >> No, do this at top >> >> if (walsnd->state == state) >>  return; >> >> Keep spinlocks when actually setting it. I think this is safe... > Aha. Thanks for the pointers, pfa a new version. ...but I think you also need to take the spinlock

Re: [HACKERS] system views for walsender activity

2011-01-11 Thread Magnus Hagander
On Tue, Jan 11, 2011 at 13:18, Simon Riggs wrote: > On Tue, 2011-01-11 at 13:04 +0100, Magnus Hagander wrote: >> On Tue, Jan 11, 2011 at 12:58, Simon Riggs wrote: >> > On Tue, 2011-01-11 at 12:41 +0100, Magnus Hagander wrote: >> > >> >> Just to be clear, you're objecting to the *name* of the stat

Re: [HACKERS] system views for walsender activity

2011-01-11 Thread Simon Riggs
On Tue, 2011-01-11 at 13:04 +0100, Magnus Hagander wrote: > On Tue, Jan 11, 2011 at 12:58, Simon Riggs wrote: > > On Tue, 2011-01-11 at 12:41 +0100, Magnus Hagander wrote: > > > >> Just to be clear, you're objecting to the *name* of the state, right, > >> not how/where it's set? > > > > Yes > > >

Re: [HACKERS] system views for walsender activity

2011-01-11 Thread Magnus Hagander
On Tue, Jan 11, 2011 at 12:58, Simon Riggs wrote: > On Tue, 2011-01-11 at 12:41 +0100, Magnus Hagander wrote: > >> Just to be clear, you're objecting to the *name* of the state, right, >> not how/where it's set? > > Yes > >> In particular, how the catchup/streaming >> things are set? > > You've se

Re: [HACKERS] system views for walsender activity

2011-01-11 Thread Simon Riggs
On Tue, 2011-01-11 at 12:41 +0100, Magnus Hagander wrote: > Just to be clear, you're objecting to the *name* of the state, right, > not how/where it's set? Yes > In particular, how the catchup/streaming > things are set? You've set it in the right places. I would personally constrain the stat

Re: [HACKERS] system views for walsender activity

2011-01-11 Thread Magnus Hagander
On Tue, Jan 11, 2011 at 12:23, Simon Riggs wrote: > On Tue, 2011-01-11 at 11:28 +0100, Magnus Hagander wrote: >> >>> >> >> >>> >> (You'd need a 4th mode for WAITING or so, to indicate it's waiting for >> >>> >> a command) >> >>> > >> >>> > That's something different. >> >>> > >> >>> > The 3 phases

Re: [HACKERS] system views for walsender activity

2011-01-11 Thread Magnus Hagander
On Tue, Jan 11, 2011 at 12:17, Robert Haas wrote: > On Tue, Jan 11, 2011 at 5:28 AM, Magnus Hagander wrote: >> Does this seem correct? > > It looks reasonable, except that I the way you've chosen to capitalize > the wal sender states makes me want to shoot myself. Hah, I was waiting for that. I

Re: [HACKERS] system views for walsender activity

2011-01-11 Thread Simon Riggs
On Tue, 2011-01-11 at 11:28 +0100, Magnus Hagander wrote: > >>> >> > >>> >> (You'd need a 4th mode for WAITING or so, to indicate it's waiting for > >>> >> a command) > >>> > > >>> > That's something different. > >>> > > >>> > The 3 phases are more concrete. > >>> > > >>> > BACKUP --> CATCHUP<--->

Re: [HACKERS] system views for walsender activity

2011-01-11 Thread Robert Haas
On Tue, Jan 11, 2011 at 5:28 AM, Magnus Hagander wrote: > Does this seem correct? It looks reasonable, except that I the way you've chosen to capitalize the wal sender states makes me want to shoot myself. -- Robert Haas EnterpriseDB: http://www.enterprisedb.com The Enterprise PostgreSQL Compan

Re: [HACKERS] system views for walsender activity

2011-01-11 Thread Magnus Hagander
On Tue, Jan 11, 2011 at 02:24, Robert Haas wrote: > On Mon, Jan 10, 2011 at 10:41 AM, Simon Riggs wrote: >>> >>> I think we need a status enum. ('BACKUP', 'CATCHUP', 'STREAM') for the 3 >>> >>> phases of replication. >>> >> >>> >> That seems reasonable. But if we keep BACKUP in there, should we >

Re: [HACKERS] system views for walsender activity

2011-01-10 Thread Robert Haas
On Mon, Jan 10, 2011 at 10:41 AM, Simon Riggs wrote: >> >>> I think we need a status enum. ('BACKUP', 'CATCHUP', 'STREAM') for the 3 >> >>> phases of replication. >> >> >> >> That seems reasonable. But if we keep BACKUP in there, should we >> >> really have it called pg_stat_replication? (yeah, I

Re: [HACKERS] system views for walsender activity

2011-01-10 Thread Magnus Hagander
On Mon, Jan 10, 2011 at 16:48, Euler Taveira de Oliveira wrote: > Em 10-01-2011 12:05, Heikki Linnakangas escreveu: >> >> So how does a walsender that's waiting for a command from the client >> show up? Surely it's not in "catchup" mode yet? >> > It is kind of "initializing catchup". I think it is

Re: [HACKERS] system views for walsender activity

2011-01-10 Thread Magnus Hagander
On Mon, Jan 10, 2011 at 16:41, Simon Riggs wrote: > On Mon, 2011-01-10 at 17:05 +0200, Heikki Linnakangas wrote: >> On 10.01.2011 16:49, Simon Riggs wrote: >> > On Mon, 2011-01-10 at 15:20 +0100, Magnus Hagander wrote: >> >> On Sun, Jan 9, 2011 at 15:53, Simon Riggs  wrote: >> >>> On Sun, 2011-01-

Re: [HACKERS] system views for walsender activity

2011-01-10 Thread Euler Taveira de Oliveira
Em 10-01-2011 12:05, Heikki Linnakangas escreveu: So how does a walsender that's waiting for a command from the client show up? Surely it's not in "catchup" mode yet? It is kind of "initializing catchup". I think it is not worth representing those short lifespan states (in normal scenarios).

Re: [HACKERS] system views for walsender activity

2011-01-10 Thread Simon Riggs
On Mon, 2011-01-10 at 17:05 +0200, Heikki Linnakangas wrote: > On 10.01.2011 16:49, Simon Riggs wrote: > > On Mon, 2011-01-10 at 15:20 +0100, Magnus Hagander wrote: > >> On Sun, Jan 9, 2011 at 15:53, Simon Riggs wrote: > >>> On Sun, 2011-01-09 at 12:52 +0100, Magnus Hagander wrote: > >>> > On

Re: [HACKERS] system views for walsender activity

2011-01-10 Thread Heikki Linnakangas
On 10.01.2011 16:49, Simon Riggs wrote: On Mon, 2011-01-10 at 15:20 +0100, Magnus Hagander wrote: On Sun, Jan 9, 2011 at 15:53, Simon Riggs wrote: On Sun, 2011-01-09 at 12:52 +0100, Magnus Hagander wrote: One thing I noticed is that it gives an interesting property to my patch for streaming

Re: [HACKERS] system views for walsender activity

2011-01-10 Thread Simon Riggs
On Mon, 2011-01-10 at 15:20 +0100, Magnus Hagander wrote: > On Sun, Jan 9, 2011 at 15:53, Simon Riggs wrote: > > On Sun, 2011-01-09 at 12:52 +0100, Magnus Hagander wrote: > > > >> One thing I noticed is that it gives an interesting property to my > >> patch for streaming base backups - they now sh

Re: [HACKERS] system views for walsender activity

2011-01-10 Thread Magnus Hagander
On Sun, Jan 9, 2011 at 15:53, Simon Riggs wrote: > On Sun, 2011-01-09 at 12:52 +0100, Magnus Hagander wrote: > >> One thing I noticed is that it gives an interesting property to my >> patch for streaming base backups - they now show up in >> pg_stat_replication, with a streaming location of 0/0. >

Re: [HACKERS] system views for walsender activity

2011-01-09 Thread Simon Riggs
On Sun, 2011-01-09 at 12:52 +0100, Magnus Hagander wrote: > One thing I noticed is that it gives an interesting property to my > patch for streaming base backups - they now show up in > pg_stat_replication, with a streaming location of 0/0. > > If the view is named pg_stat_replication, we probabl

Re: [HACKERS] system views for walsender activity

2011-01-09 Thread Magnus Hagander
On Fri, Jan 7, 2011 at 22:21, Robert Haas wrote: > On Fri, Jan 7, 2011 at 1:46 PM, Josh Berkus wrote: >> >>> To my way of thinking, pg_stat_walsender and pg_stat_walreceiver would >>> be more clear than pg_stat_replication_master and >>> pg_stat_replication_slave. >> >> Let's commit it so that so

Re: [HACKERS] system views for walsender activity

2011-01-07 Thread Robert Haas
On Fri, Jan 7, 2011 at 1:46 PM, Josh Berkus wrote: > >> To my way of thinking, pg_stat_walsender and pg_stat_walreceiver would >> be more clear than pg_stat_replication_master and >> pg_stat_replication_slave. > > Let's commit it so that some of us can get a look at the data it > contains, and the

Re: [HACKERS] system views for walsender activity

2011-01-07 Thread Simon Riggs
On Fri, 2011-01-07 at 14:51 -0500, Tom Lane wrote: > Simon Riggs writes: > > On Fri, 2011-01-07 at 19:48 +0100, Magnus Hagander wrote: > >> We try to avoid inidb-requiring changes (like renaming a system > >> object...) during beta. > > > Why? > > So that beta testers won't be forced to do a dum

Re: [HACKERS] system views for walsender activity

2011-01-07 Thread Magnus Hagander
On Fri, Jan 7, 2011 at 20:51, Tom Lane wrote: > Simon Riggs writes: >> On Fri, 2011-01-07 at 19:48 +0100, Magnus Hagander wrote: >>> We try to avoid inidb-requiring changes (like renaming a system >>> object...) during beta. > >> Why? > > So that beta testers won't be forced to do a dump and relo

Re: [HACKERS] system views for walsender activity

2011-01-07 Thread Tom Lane
Simon Riggs writes: > On Fri, 2011-01-07 at 19:48 +0100, Magnus Hagander wrote: >> We try to avoid inidb-requiring changes (like renaming a system >> object...) during beta. > Why? So that beta testers won't be forced to do a dump and reload. When and if pg_upgrade is actually 100% trustworthy,

Re: [HACKERS] system views for walsender activity

2011-01-07 Thread Simon Riggs
On Fri, 2011-01-07 at 19:48 +0100, Magnus Hagander wrote: > On Fri, Jan 7, 2011 at 19:46, Josh Berkus wrote: > > > >> To my way of thinking, pg_stat_walsender and pg_stat_walreceiver would > >> be more clear than pg_stat_replication_master and > >> pg_stat_replication_slave. > > > > Let's commit i

Re: [HACKERS] system views for walsender activity

2011-01-07 Thread Magnus Hagander
On Fri, Jan 7, 2011 at 19:46, Josh Berkus wrote: > >> To my way of thinking, pg_stat_walsender and pg_stat_walreceiver would >> be more clear than pg_stat_replication_master and >> pg_stat_replication_slave. > > Let's commit it so that some of us can get a look at the data it > contains, and then

Re: [HACKERS] system views for walsender activity

2011-01-07 Thread Josh Berkus
> To my way of thinking, pg_stat_walsender and pg_stat_walreceiver would > be more clear than pg_stat_replication_master and > pg_stat_replication_slave. Let's commit it so that some of us can get a look at the data it contains, and then we can fix the name during beta. --

Re: [HACKERS] system views for walsender activity

2011-01-07 Thread Robert Haas
On Fri, Jan 7, 2011 at 8:09 AM, Itagaki Takahiro wrote: > On Fri, Jan 7, 2011 at 21:48, Magnus Hagander wrote: >>>  * pg_stat_replication >>>  * pg_stat_standby (not yet) >> >> Just to keep the bikeshedding up, should it in this case not be >> pg_stat_replication_master and pg_stat_replication_st

Re: [HACKERS] system views for walsender activity

2011-01-07 Thread Itagaki Takahiro
On Fri, Jan 7, 2011 at 21:48, Magnus Hagander wrote: >>  * pg_stat_replication >>  * pg_stat_standby (not yet) > > Just to keep the bikeshedding up, should it in this case not be > pg_stat_replication_master and pg_stat_replication_standby or such? > Replication applies to both master and slave...

Re: [HACKERS] system views for walsender activity

2011-01-07 Thread Magnus Hagander
On Fri, Jan 7, 2011 at 12:42, Itagaki Takahiro wrote: > On Fri, Jan 7, 2011 at 19:20, Simon Riggs 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 ge

Re: [HACKERS] system views for walsender activity

2011-01-07 Thread Itagaki Takahiro
On Fri, Jan 7, 2011 at 19:20, Simon Riggs 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. Tha

Re: [HACKERS] system views for walsender activity

2011-01-07 Thread Simon Riggs
On Fri, 2011-01-07 at 12:13 +0900, Itagaki Takahiro wrote: > "pg_stat_replication" seems to be the most understandable name. > > > I would very much appreciate it if one of you could complete something > > here and commit in the next few days. That would then allow me to extend > > the view with

Re: [HACKERS] system views for walsender activity

2011-01-06 Thread Itagaki Takahiro
On Wed, Jan 5, 2011 at 02:48, Simon Riggs wrote: > The way I coded it was a new SRF that joins to the existing > pg_stat_activity. So no initdb required, and this can also easily be > included as an external module for 9.0. > > Please notice also that my coding of the new SRF does not have the O^2

Re: [HACKERS] system views for walsender activity

2011-01-05 Thread Magnus Hagander
On Wed, Jan 5, 2011 at 02:32, Itagaki Takahiro wrote: > On Wed, Jan 5, 2011 at 04:56, Heikki Linnakangas > wrote: >>> I think pg_stat_replication is better than pg_stat_standby, but I'm >>> still not convinced we shouldn't go with the obvious >>> pg_stat_walsenders. >> >> How about pg_stat_replic

Re: [HACKERS] system views for walsender activity

2011-01-04 Thread Itagaki Takahiro
On Wed, Jan 5, 2011 at 04:56, Heikki Linnakangas wrote: >> I think pg_stat_replication is better than pg_stat_standby, but I'm >> still not convinced we shouldn't go with the obvious >> pg_stat_walsenders. > > How about pg_stat_replication_activity? If I understood correctly, the view > is similar

Re: [HACKERS] system views for walsender activity

2011-01-04 Thread David Fetter
On Tue, Jan 04, 2011 at 10:50:12AM -0800, Josh Berkus wrote: > > > Eh... I may be showing my status as a non-normal human, but I know > > exactly what pg_stat_walsender is (it's the view that shows you the > > status of the WAL senders you've allowed by configuring > > max_wal_senders>0) but I hav

Re: [HACKERS] system views for walsender activity

2011-01-04 Thread Heikki Linnakangas
On 04.01.2011 21:43, Robert Haas wrote: On Tue, Jan 4, 2011 at 2:31 PM, Magnus Hagander wrote: On Tue, Jan 4, 2011 at 20:28, Josh Berkus wrote: hmmm I think "pg_stat_standby" might be more relevant but I definitely agree something more newbie appropriate is in order. I'd be fine with that

Re: [HACKERS] system views for walsender activity

2011-01-04 Thread Robert Haas
On Tue, Jan 4, 2011 at 2:31 PM, Magnus Hagander wrote: > On Tue, Jan 4, 2011 at 20:28, Josh Berkus wrote: >> >>> hmmm I think "pg_stat_standby" might be more relevant but I definitely >>> agree something more newbie appropriate is in order. >> >> I'd be fine with that name, too. > > That seems ki

Re: [HACKERS] system views for walsender activity

2011-01-04 Thread Magnus Hagander
On Tue, Jan 4, 2011 at 20:28, Josh Berkus wrote: > >> hmmm I think "pg_stat_standby" might be more relevant but I definitely >> agree something more newbie appropriate is in order. > > I'd be fine with that name, too. That seems kind of backwards though - given that the view only contains data on

Re: [HACKERS] system views for walsender activity

2011-01-04 Thread Josh Berkus
> hmmm I think "pg_stat_standby" might be more relevant but I definitely > agree something more newbie appropriate is in order. I'd be fine with that name, too. -- -- Josh Berkus PostgreSQL Experts Inc.

Re: [HACKERS] system views for walsender activity

2011-01-04 Thread Joshua D. Drake
On Tue, 2011-01-04 at 10:50 -0800, Josh Berkus wrote: > > Eh... I may be showing my status as a non-normal human, but I know > > exactly what pg_stat_walsender is (it's the view that shows you the > > status of the WAL senders you've allowed by configuring > > max_wal_senders>0) but I have no idea

Re: [HACKERS] system views for walsender activity

2011-01-04 Thread Josh Berkus
> Eh... I may be showing my status as a non-normal human, but I know > exactly what pg_stat_walsender is (it's the view that shows you the > status of the WAL senders you've allowed by configuring > max_wal_senders>0) but I have no idea what pg_stat_replication_sent > and pg_stat_replication_recei

Re: [HACKERS] system views for walsender activity

2011-01-04 Thread Robert Haas
On Tue, Jan 4, 2011 at 12:48 PM, Simon Riggs wrote: > The sent pointer is needed whether or not we have sync rep. We should > also include application name, since the user may set that in the > standby for all the same reasons it is set elsewhere. > > Small point: please lets not call this pg_stat

Re: [HACKERS] system views for walsender activity

2011-01-04 Thread Simon Riggs
On Tue, 2011-01-04 at 15:51 +0900, Itagaki Takahiro wrote: > On Tue, Dec 28, 2010 at 22:17, Magnus Hagander wrote: > >>> We definitely need the very basic level for 9.1, and we can always > >>> improve on it later :-) > > > >>> pg_stat_walsender. It would then only need the columns for procpid, >

Re: [HACKERS] system views for walsender activity

2011-01-03 Thread Itagaki Takahiro
On Tue, Dec 28, 2010 at 22:17, Magnus Hagander wrote: >>> We definitely need the very basic level for 9.1, and we can always >>> improve on it later :-) > >>> pg_stat_walsender. It would then only need the columns for procpid, >>> usesysid, usename, client_addr, client_port, and the WALsender >>>

Re: [HACKERS] system views for walsender activity

2010-12-28 Thread Magnus Hagander
On Tue, Dec 28, 2010 at 14:14, Itagaki Takahiro wrote: > On Tue, Dec 28, 2010 at 21:46, Magnus Hagander wrote: >>> Unfortunately, 2 also requires initdb because pg_stat_activity will >>> use LEFT JOIN instead of normal JOIN not to hide rows with databaseid = 0. >>> All of them are items for 9.1.

Re: [HACKERS] system views for walsender activity

2010-12-28 Thread Itagaki Takahiro
On Tue, Dec 28, 2010 at 21:46, Magnus Hagander wrote: >> Unfortunately, 2 also requires initdb because pg_stat_activity will >> use LEFT JOIN instead of normal JOIN not to hide rows with databaseid = 0. >> All of them are items for 9.1. > > Did this one end up on the floor? > > We definitely need

Re: [HACKERS] system views for walsender activity

2010-12-28 Thread Magnus Hagander
On Tue, Jun 22, 2010 at 06:18, Takahiro Itagaki wrote: > > Magnus Hagander wrote: > >> The downside is that version 1 will require an initdb, and not version >> 2, right? > > Unfortunately, 2 also requires initdb because pg_stat_activity will > use LEFT JOIN instead of normal JOIN not to hide row

Re: [HACKERS] system views for walsender activity

2010-06-22 Thread Simon Riggs
On Tue, 2010-06-22 at 12:19 +0200, Guillaume Lelarge wrote: > Shamely simple : I only added some informations on the server's > properties. See > http://www.pgadmin.org/images/visualtour12/visualtour08.jpg. We only > display the fact that the server is (or isn't) in recovery, and the > result of th

Re: [HACKERS] system views for walsender activity

2010-06-22 Thread Guillaume Lelarge
Le 22/06/2010 11:41, Simon Riggs a écrit : > On Tue, 2010-06-22 at 09:54 +0200, Guillaume Lelarge wrote: >> I added support for Hot Standby / >> Streaming Replication in pgAdmin (that was a really small patch, there >> was not a lot to do) > > Well done. > > Does this mean that pgAdmin has a read

Re: [HACKERS] system views for walsender activity

2010-06-22 Thread Guillaume Lelarge
Le 22/06/2010 12:42, Simon Riggs a écrit : > On Tue, 2010-06-22 at 12:19 +0200, Guillaume Lelarge wrote: >> Shamely simple : I only added some informations on the server's >> properties. See >> http://www.pgadmin.org/images/visualtour12/visualtour08.jpg. We only >> display the fact that the server

Re: [HACKERS] system views for walsender activity

2010-06-22 Thread Simon Riggs
On Tue, 2010-06-22 at 09:54 +0200, Guillaume Lelarge wrote: > I added support for Hot Standby / > Streaming Replication in pgAdmin (that was a really small patch, there > was not a lot to do) Well done. Does this mean that pgAdmin has a read only mode now? What are the details of that support? I

Re: [HACKERS] system views for walsender activity

2010-06-22 Thread Guillaume Lelarge
Le 22/06/2010 06:40, Takahiro Itagaki a écrit : > [...] > Tom Lane wrote: > >> I'm of the opinion that this is a 9.1 problem. It needs more thought >> than we can put into it now --- one obvious question is what about >> monitoring on the slave side? Another is who should be able to see the >>

Re: [HACKERS] system views for walsender activity

2010-06-21 Thread Takahiro Itagaki
Tom Lane wrote: > I'm of the opinion that this is a 9.1 problem. It needs more thought > than we can put into it now --- one obvious question is what about > monitoring on the slave side? Another is who should be able to see the > data? Sure. We should research user's demands for monitoring a

Re: [HACKERS] system views for walsender activity

2010-06-18 Thread Tom Lane
Heikki Linnakangas writes: > Let's discuss what the best possible user interface for the information > would be first, and then decide if we need/want to force an initdb for > that. We have pg_upgrade now, that makes initdb less painful, and if > it's just a new view it might be possible to jus

Re: [HACKERS] system views for walsender activity

2010-06-18 Thread Heikki Linnakangas
On 18/06/10 13:41, Simon Riggs wrote: On Fri, 2010-06-18 at 11:33 +0900, Takahiro Itagaki wrote: 1. Add another system view for walsenders, ex. "pg_stat_replication". It would show pid, remote host, and sent location for each walsender. I prefer this option. I consider it an omission that

Re: [HACKERS] system views for walsender activity

2010-06-18 Thread Simon Riggs
On Fri, 2010-06-18 at 11:33 +0900, Takahiro Itagaki wrote: > 1. Add another system view for walsenders, ex. "pg_stat_replication". >It would show pid, remote host, and sent location for each walsender. I prefer this option. I consider it an omission that we should correct. Not sure I underst

Re: [HACKERS] system views for walsender activity

2010-06-18 Thread Magnus Hagander
On Fri, Jun 18, 2010 at 04:33, Takahiro Itagaki wrote: > Hi, > > We don't have any statistic views for walsenders in SR's master server > in 9.0, but such views would be useful to monitor and manage standby > servers from the master server. I have two ideas for the solution - > adding a new system