xmin value from pg_stat_replication

From: "S(dot) Bob" <sbob(at)quadratum-braccas(dot)com>
To: pgsql-admin(at)lists(dot)postgresql(dot)org
Subject: xmin value from pg_stat_replication
Date: 2019-07-17 18:31:29
Message-ID: 2bbb14f7-b894-cf98-986f-59e4711d0aa5@quadratum-braccas.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

All;

We have a master and a standby (Streaming replication).

This query produces a value of approx 1.5million on the master and
approx 80million on the standby:

select slot_name, slot_type, database, xmin from pg_replication_slots
order by age(xmin);

We are running replication in async mode.

A couple of questions:

- Is it unusual for the master & standby to differ dramatically like this?

- could the replication slot (i.e. the xmin on the standby) be
preventing vacuum from cleaning up row versions on the master?

Thanks in advance

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Jerry Sievers 2019-07-17 18:38:08 Re: xmin value from pg_stat_replication
Previous Message MichaelDBA 2019-07-17 18:20:43 Re: Performance tuning/Response times in Postgres 11.2