Lists: | pgsql-hackers |
---|
From: | Magnus Hagander <magnus(at)hagander(dot)net> |
---|---|
To: | PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org> |
Subject: | pg_stat_replication vs StandbyReplyMessage |
Date: | 2011-08-15 11:03:35 |
Message-ID: | CABUevEwA=AFWXr-7cCpZ9MDdxHL2wFGsxFiB6uyFDTOhRudGrA@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-hackers |
The pg_stat_replication view exposes all the fields in
StandbyReplyMessage *except* for the timestamp when the message was
generated. On an active system this is not all that interesting, but
on a mostly idle system that allows the monitoring to react faster
than the timeout that actually kicks the other end off - and could be
useful in manual debugging scenarios. Any particular reason why this
was not exposed as it's own column?
--
Magnus Hagander
Me: http://www.hagander.net/
Work: http://www.redpill-linpro.com/
From: | Robert Haas <robertmhaas(at)gmail(dot)com> |
---|---|
To: | Magnus Hagander <magnus(at)hagander(dot)net> |
Cc: | PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: pg_stat_replication vs StandbyReplyMessage |
Date: | 2011-08-15 11:50:58 |
Message-ID: | CA+TgmoZX_Q8rg6LV=Kg7vRJNMEEOii_VZHdo-wT+=QDR=8FdUg@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-hackers |
On Mon, Aug 15, 2011 at 7:03 AM, Magnus Hagander <magnus(at)hagander(dot)net> wrote:
> The pg_stat_replication view exposes all the fields in
> StandbyReplyMessage *except* for the timestamp when the message was
> generated. On an active system this is not all that interesting, but
> on a mostly idle system that allows the monitoring to react faster
> than the timeout that actually kicks the other end off - and could be
> useful in manual debugging scenarios. Any particular reason why this
> was not exposed as it's own column?
I wondered the same thing. Sounds like a good idea.
--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company
From: | Magnus Hagander <magnus(at)hagander(dot)net> |
---|---|
To: | Robert Haas <robertmhaas(at)gmail(dot)com> |
Cc: | PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: pg_stat_replication vs StandbyReplyMessage |
Date: | 2011-08-16 09:51:33 |
Message-ID: | CABUevEwTc0uaRxEFr-LVDho9KUmWZMW_8hv=SghwJd9yUtPM0w@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-hackers |
On Mon, Aug 15, 2011 at 13:50, Robert Haas <robertmhaas(at)gmail(dot)com> wrote:
> On Mon, Aug 15, 2011 at 7:03 AM, Magnus Hagander <magnus(at)hagander(dot)net> wrote:
>> The pg_stat_replication view exposes all the fields in
>> StandbyReplyMessage *except* for the timestamp when the message was
>> generated. On an active system this is not all that interesting, but
>> on a mostly idle system that allows the monitoring to react faster
>> than the timeout that actually kicks the other end off - and could be
>> useful in manual debugging scenarios. Any particular reason why this
>> was not exposed as it's own column?
>
> I wondered the same thing. Sounds like a good idea.
I can go do that. Care to argue^Wbikeshed for a specific name?
--
Magnus Hagander
Me: http://www.hagander.net/
Work: http://www.redpill-linpro.com/
From: | Simon Riggs <simon(at)2ndQuadrant(dot)com> |
---|---|
To: | Magnus Hagander <magnus(at)hagander(dot)net> |
Cc: | Robert Haas <robertmhaas(at)gmail(dot)com>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: pg_stat_replication vs StandbyReplyMessage |
Date: | 2011-08-16 12:54:45 |
Message-ID: | CA+U5nM+q6PnBLJxG4MAYB0476qF4WfyCe+jMUa_AkScimKQDfg@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-hackers |
On Tue, Aug 16, 2011 at 10:51 AM, Magnus Hagander <magnus(at)hagander(dot)net> wrote:
> On Mon, Aug 15, 2011 at 13:50, Robert Haas <robertmhaas(at)gmail(dot)com> wrote:
>> On Mon, Aug 15, 2011 at 7:03 AM, Magnus Hagander <magnus(at)hagander(dot)net> wrote:
>>> The pg_stat_replication view exposes all the fields in
>>> StandbyReplyMessage *except* for the timestamp when the message was
>>> generated. On an active system this is not all that interesting, but
>>> on a mostly idle system that allows the monitoring to react faster
>>> than the timeout that actually kicks the other end off - and could be
>>> useful in manual debugging scenarios. Any particular reason why this
>>> was not exposed as it's own column?
>>
>> I wondered the same thing. Sounds like a good idea.
>
> I can go do that. Care to argue^Wbikeshed for a specific name?
reply_timestamp
--
Simon Riggs http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services
From: | Robert Haas <robertmhaas(at)gmail(dot)com> |
---|---|
To: | Simon Riggs <simon(at)2ndquadrant(dot)com> |
Cc: | Magnus Hagander <magnus(at)hagander(dot)net>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: pg_stat_replication vs StandbyReplyMessage |
Date: | 2011-08-16 13:25:37 |
Message-ID: | CA+TgmoZ39FvwbVQGAusNx_Mv=yqOr_UFuFnMorNYNvxPaxkOeA@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-hackers |
On Tue, Aug 16, 2011 at 8:54 AM, Simon Riggs <simon(at)2ndquadrant(dot)com> wrote:
> On Tue, Aug 16, 2011 at 10:51 AM, Magnus Hagander <magnus(at)hagander(dot)net> wrote:
>> On Mon, Aug 15, 2011 at 13:50, Robert Haas <robertmhaas(at)gmail(dot)com> wrote:
>>> On Mon, Aug 15, 2011 at 7:03 AM, Magnus Hagander <magnus(at)hagander(dot)net> wrote:
>>>> The pg_stat_replication view exposes all the fields in
>>>> StandbyReplyMessage *except* for the timestamp when the message was
>>>> generated. On an active system this is not all that interesting, but
>>>> on a mostly idle system that allows the monitoring to react faster
>>>> than the timeout that actually kicks the other end off - and could be
>>>> useful in manual debugging scenarios. Any particular reason why this
>>>> was not exposed as it's own column?
>>>
>>> I wondered the same thing. Sounds like a good idea.
>>
>> I can go do that. Care to argue^Wbikeshed for a specific name?
>
> reply_timestamp
Works for me. I'd suggest that we rename it that way in
StandbyReplyMessage, so that the name in the struct and the name in
the system view match.
--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company
From: | Simon Riggs <simon(at)2ndQuadrant(dot)com> |
---|---|
To: | Robert Haas <robertmhaas(at)gmail(dot)com> |
Cc: | Magnus Hagander <magnus(at)hagander(dot)net>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: pg_stat_replication vs StandbyReplyMessage |
Date: | 2011-08-16 14:00:09 |
Message-ID: | CA+U5nMJQ3ppbfesFe8vC2hjYcD1r3wb3DbhBOv1t1k2QPeyfgw@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-hackers |
On Tue, Aug 16, 2011 at 2:25 PM, Robert Haas <robertmhaas(at)gmail(dot)com> wrote:
> On Tue, Aug 16, 2011 at 8:54 AM, Simon Riggs <simon(at)2ndquadrant(dot)com> wrote:
>> On Tue, Aug 16, 2011 at 10:51 AM, Magnus Hagander <magnus(at)hagander(dot)net> wrote:
>>> On Mon, Aug 15, 2011 at 13:50, Robert Haas <robertmhaas(at)gmail(dot)com> wrote:
>>>> On Mon, Aug 15, 2011 at 7:03 AM, Magnus Hagander <magnus(at)hagander(dot)net> wrote:
>>>>> The pg_stat_replication view exposes all the fields in
>>>>> StandbyReplyMessage *except* for the timestamp when the message was
>>>>> generated. On an active system this is not all that interesting, but
>>>>> on a mostly idle system that allows the monitoring to react faster
>>>>> than the timeout that actually kicks the other end off - and could be
>>>>> useful in manual debugging scenarios. Any particular reason why this
>>>>> was not exposed as it's own column?
>>>>
>>>> I wondered the same thing. Sounds like a good idea.
>>>
>>> I can go do that. Care to argue^Wbikeshed for a specific name?
>>
>> reply_timestamp
>
> Works for me.
> I'd suggest that we rename it that way in
> StandbyReplyMessage, so that the name in the struct and the name in
> the system view match.
-1
The field is named same as equivalent field in other messages.
The field on the view is a summary of all previous messages, which is
a different thing. Perhaps we should call it last_reply_timestamp to
make that clearer, though long titles are annoying.
--
Simon Riggs http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services
From: | Magnus Hagander <magnus(at)hagander(dot)net> |
---|---|
To: | Simon Riggs <simon(at)2ndquadrant(dot)com> |
Cc: | Robert Haas <robertmhaas(at)gmail(dot)com>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: pg_stat_replication vs StandbyReplyMessage |
Date: | 2011-08-16 14:02:17 |
Message-ID: | CABUevEwS8T5UOiss+qS_w74DuO4e0Rj0x=XWALamezU2F70kgA@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-hackers |
On Tue, Aug 16, 2011 at 16:00, Simon Riggs <simon(at)2ndquadrant(dot)com> wrote:
> On Tue, Aug 16, 2011 at 2:25 PM, Robert Haas <robertmhaas(at)gmail(dot)com> wrote:
>> On Tue, Aug 16, 2011 at 8:54 AM, Simon Riggs <simon(at)2ndquadrant(dot)com> wrote:
>>> On Tue, Aug 16, 2011 at 10:51 AM, Magnus Hagander <magnus(at)hagander(dot)net> wrote:
>>>> On Mon, Aug 15, 2011 at 13:50, Robert Haas <robertmhaas(at)gmail(dot)com> wrote:
>>>>> On Mon, Aug 15, 2011 at 7:03 AM, Magnus Hagander <magnus(at)hagander(dot)net> wrote:
>>>>>> The pg_stat_replication view exposes all the fields in
>>>>>> StandbyReplyMessage *except* for the timestamp when the message was
>>>>>> generated. On an active system this is not all that interesting, but
>>>>>> on a mostly idle system that allows the monitoring to react faster
>>>>>> than the timeout that actually kicks the other end off - and could be
>>>>>> useful in manual debugging scenarios. Any particular reason why this
>>>>>> was not exposed as it's own column?
>>>>>
>>>>> I wondered the same thing. Sounds like a good idea.
>>>>
>>>> I can go do that. Care to argue^Wbikeshed for a specific name?
>>>
>>> reply_timestamp
>>
>> Works for me.
>
>> I'd suggest that we rename it that way in
>> StandbyReplyMessage, so that the name in the struct and the name in
>> the system view match.
>
> -1
>
> The field is named same as equivalent field in other messages.
>
> The field on the view is a summary of all previous messages, which is
> a different thing. Perhaps we should call it last_reply_timestamp to
> make that clearer, though long titles are annoying.
We don't say last_replay_location either, we just say replay_location.
Adding the last_ part is just annoying.
--
Magnus Hagander
Me: http://www.hagander.net/
Work: http://www.redpill-linpro.com/
From: | Bruce Momjian <bruce(at)momjian(dot)us> |
---|---|
To: | Magnus Hagander <magnus(at)hagander(dot)net> |
Cc: | PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: pg_stat_replication vs StandbyReplyMessage |
Date: | 2012-08-15 15:39:30 |
Message-ID: | 20120815153930.GG25473@momjian.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-hackers |
On Mon, Aug 15, 2011 at 01:03:35PM +0200, Magnus Hagander wrote:
> The pg_stat_replication view exposes all the fields in
> StandbyReplyMessage *except* for the timestamp when the message was
> generated. On an active system this is not all that interesting, but
> on a mostly idle system that allows the monitoring to react faster
> than the timeout that actually kicks the other end off - and could be
> useful in manual debugging scenarios. Any particular reason why this
> was not exposed as it's own column?
Did this ever get done? I don't think so, though everyone wanted it.
--
Bruce Momjian <bruce(at)momjian(dot)us> http://momjian.us
EnterpriseDB http://enterprisedb.com
+ It's impossible for everything to be true. +
From: | Magnus Hagander <magnus(at)hagander(dot)net> |
---|---|
To: | Bruce Momjian <bruce(at)momjian(dot)us> |
Cc: | PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: pg_stat_replication vs StandbyReplyMessage |
Date: | 2012-08-23 10:40:33 |
Message-ID: | CABUevEwYEmRpDe=NLeqd8dgpe-jqc1pN1fLfwvwpK6ZrbL+W=A@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-hackers |
On Wed, Aug 15, 2012 at 5:39 PM, Bruce Momjian <bruce(at)momjian(dot)us> wrote:
> On Mon, Aug 15, 2011 at 01:03:35PM +0200, Magnus Hagander wrote:
>> The pg_stat_replication view exposes all the fields in
>> StandbyReplyMessage *except* for the timestamp when the message was
>> generated. On an active system this is not all that interesting, but
>> on a mostly idle system that allows the monitoring to react faster
>> than the timeout that actually kicks the other end off - and could be
>> useful in manual debugging scenarios. Any particular reason why this
>> was not exposed as it's own column?
>
> Did this ever get done? I don't think so, though everyone wanted it.
Nope, it wasn't done. Should probably do that for 9.3 (since adding a
field to pg_stat_replication will cause initdb, so we can't really do
it for 9.2 unless it was really critical - and it's not).
--
Magnus Hagander
Me: http://www.hagander.net/
Work: http://www.redpill-linpro.com/
From: | Bruce Momjian <bruce(at)momjian(dot)us> |
---|---|
To: | Magnus Hagander <magnus(at)hagander(dot)net> |
Cc: | PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: pg_stat_replication vs StandbyReplyMessage |
Date: | 2012-08-25 20:46:51 |
Message-ID: | 20120825204651.GC10814@momjian.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-hackers |
On Thu, Aug 23, 2012 at 12:40:33PM +0200, Magnus Hagander wrote:
> On Wed, Aug 15, 2012 at 5:39 PM, Bruce Momjian <bruce(at)momjian(dot)us> wrote:
> > On Mon, Aug 15, 2011 at 01:03:35PM +0200, Magnus Hagander wrote:
> >> The pg_stat_replication view exposes all the fields in
> >> StandbyReplyMessage *except* for the timestamp when the message was
> >> generated. On an active system this is not all that interesting, but
> >> on a mostly idle system that allows the monitoring to react faster
> >> than the timeout that actually kicks the other end off - and could be
> >> useful in manual debugging scenarios. Any particular reason why this
> >> was not exposed as it's own column?
> >
> > Did this ever get done? I don't think so, though everyone wanted it.
>
> Nope, it wasn't done. Should probably do that for 9.3 (since adding a
> field to pg_stat_replication will cause initdb, so we can't really do
> it for 9.2 unless it was really critical - and it's not).
OK, TODO added:
Add entry creation timestamp column to pg_stat_replication
http://archives.postgresql.org/pgsql-hackers/2011-08/msg00694.php
--
Bruce Momjian <bruce(at)momjian(dot)us> http://momjian.us
EnterpriseDB http://enterprisedb.com
+ It's impossible for everything to be true. +