pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Rui DeSousa <rui@crazybean.net>
To: Andrey Zhidenkov <andrey.zhidenkov@gmail.com>
Cc: pgsql-admin <pgsql-admin@postgresql.org>
Subject: Re: hot_standby_feedback parameter doesn't work
Date: Tue, 13 Nov 2018 10:53:36 -0500
Message-ID: <2B832E7A-146E-4818-B080-4EF15F0F291C@crazybean.net> (raw)
In-Reply-To: <CAJw4d1UgWxd8S+Xog=dV8YV=S2wruTpro0n==ZHs6B5Cfx+iSQ@mail.gmail.com>
References: <CAJw4d1Vnw+BFVuSnSne8APg+e1cD0p4RVOtdqpf3pEVaSgb3Cw@mail.gmail.com>
	<06C4AE86-9E7F-40E6-B851-AE898CDFA965@crazybean.net>
	<CAJw4d1UgWxd8S+Xog=dV8YV=S2wruTpro0n==ZHs6B5Cfx+iSQ@mail.gmail.com>



> On Nov 13, 2018, at 4:18 AM, Andrey Zhidenkov <andrey.zhidenkov@gmail.com> wrote:
> 
> Yes, they are streaming replicas. Could you please tell me how to
> check xmin of the replica in pg_stat_activity? I didn't get the point.
> 

select pid
 , usename
 , application_name
 , backend_start
 , backend_xmin
 , state
from pg_stat_replication
;

select pid
 , state
 , backend_xid
 , backend_xmin
 , backend_type
 , backend_start
from pg_stat_activity 
where backend_xmin is not null
;

Vacuum will use the xmin to determine if a record is still needed or not thus I just wanted to make sure the replica are sending that information to the master.  

What is the exact error message? 





view thread (9+ messages)  latest in thread

Message-ID: <2B832E7A-146E-4818-B080-4EF15F0F291C@crazybean.net>
Permalink:  ../2B832E7A-146E-4818-B080-4EF15F0F291C@crazybean.net/
Also on:    postgresql.org/message-id/2B832E7A-146E-4818-B080-4EF15F0F291C@crazybean.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: rui@crazybean.net, andrey.zhidenkov@gmail.com
  Subject: Re: hot_standby_feedback parameter doesn't work
  In-Reply-To: <2B832E7A-146E-4818-B080-4EF15F0F291C@crazybean.net>
  References: <CAJw4d1Vnw+BFVuSnSne8APg+e1cD0p4RVOtdqpf3pEVaSgb3Cw@mail.gmail.com> <06C4AE86-9E7F-40E6-B851-AE898CDFA965@crazybean.net> <CAJw4d1UgWxd8S+Xog=dV8YV=S2wruTpro0n==ZHs6B5Cfx+iSQ@mail.gmail.com> <2B832E7A-146E-4818-B080-4EF15F0F291C@crazybean.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox