pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jerry Sievers <gsievers19@comcast.net>
To: Andrey Zhidenkov <andrey.zhidenkov@gmail.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Determine which query prevents applying WALs on standby
Date: Thu, 06 Sep 2018 10:35:05 -0500
Message-ID: <87worywseu.fsf@jsievers.enova.com> (raw)
In-Reply-To: <CAJw4d1WDwy9CBvuagZDfHbjWmU3smfBR4X2uxL698e7m5JZzxQ@mail.gmail.com>
References: <CAJw4d1WDwy9CBvuagZDfHbjWmU3smfBR4X2uxL698e7m5JZzxQ@mail.gmail.com>

Andrey Zhidenkov <andrey.zhidenkov@gmail.com> writes:

> Is there a way to detect which query (or queries) on hot standby holds
> streaming replication? Looked into the sources and found out that
> function ResolveRecoveryConflictWithVirtualXIDs do that job but have
> no idea how to do that with SQL.

The pg_locks view on your standby should reveal something.

>
> --
> With best regards, Andrey Zhidenkov.
>
>

-- 
Jerry Sievers
Postgres DBA/Development Consulting
e: postgres.consulting@comcast.net
p: 312.241.7800




view thread (2+ messages)

Message-ID: <87worywseu.fsf@jsievers.enova.com>
Permalink:  ../87worywseu.fsf@jsievers.enova.com/
Also on:    postgresql.org/message-id/87worywseu.fsf@jsievers.enova.com

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: gsievers19@comcast.net, andrey.zhidenkov@gmail.com
  Subject: Re: Determine which query prevents applying WALs on standby
  In-Reply-To: <87worywseu.fsf@jsievers.enova.com>

* 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