pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Dimitri Maziuk <dmaziuk@bmrb.wisc.edu>
To: pgsql-general@lists.postgresql.org
Subject: Re: logical replication snapshots
Date: Wed, 25 Jul 2018 09:16:03 -0700
Message-ID: <cade60b5-cdc5-a9ed-68b8-173f394a9ce5@aklaver.com> (raw)
In-Reply-To: <9b9a72f4-44c8-5e78-8814-fdc39ca3a3ad@bmrb.wisc.edu>
References: <20180724172115.ztthbxmfgucnuuq3@alvherre.pgsql>
	<f1fe2e11-c298-0383-5df2-e0dbb2a9a68b@bmrb.wisc.edu>
	<20180724184337.k6nq7k3cq7xoorjn@alap3.anarazel.de>
	<04dcfd2d-6201-09e7-4209-9894d669f694@bmrb.wisc.edu>
	<20180725152827.g22qmue3wgycifjh@alap3.anarazel.de>
	<9b9a72f4-44c8-5e78-8814-fdc39ca3a3ad@bmrb.wisc.edu>

On 07/25/2018 08:40 AM, Dimitri Maziuk wrote:
> On 7/25/2018 10:28 AM, Andres Freund wrote:
>>
>> Are you really expecting us to be able to reproduce the problem based on
>> the above description? Our test suites do setup plain replications
>> setups, and the problem doesn't occur there.
> 
> I don't, by definition, have a reproducible case: it only happened once 
> so far.

Where you using pg_export_snapshot() by any chance?:

https://www.postgresql.org/docs/10/static/functions-admin.html#FUNCTIONS-SNAPSHOT-SYNCHRONIZATION


Where there any relevant error messages in the log before the database hung?


> 
> If nobody knows what limits the number of files created in 
> $PGDATA/pg_logical/snapshots then we'll all have to wait until this 
> happens again.
> 
> (To somebody else as I'm obviously not turning logical replication back 
> on until I know it won't kill my server again.)

Given that it took 3 weeks to manifest itself before, I would say give 
it a try and monitor $PGDATA/pg_logical/snapshots. That would help 
provide information for getting at the source of the problem. You can 
always disable the replication if it looks like it running away.

> 
> Dima
> 


-- 
Adrian Klaver
adrian.klaver@aklaver.com




view thread (27+ messages)  latest in thread

Message-ID: <cade60b5-cdc5-a9ed-68b8-173f394a9ce5@aklaver.com>
Permalink:  ../cade60b5-cdc5-a9ed-68b8-173f394a9ce5@aklaver.com/
Also on:    postgresql.org/message-id/cade60b5-cdc5-a9ed-68b8-173f394a9ce5@aklaver.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 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-general@postgresql.org
  Cc: adrian.klaver@aklaver.com, dmaziuk@bmrb.wisc.edu
  Subject: Re: logical replication snapshots
  In-Reply-To: <cade60b5-cdc5-a9ed-68b8-173f394a9ce5@aklaver.com>
  References: <20180724172115.ztthbxmfgucnuuq3@alvherre.pgsql> <f1fe2e11-c298-0383-5df2-e0dbb2a9a68b@bmrb.wisc.edu> <20180724184337.k6nq7k3cq7xoorjn@alap3.anarazel.de> <04dcfd2d-6201-09e7-4209-9894d669f694@bmrb.wisc.edu> <20180725152827.g22qmue3wgycifjh@alap3.anarazel.de> <9b9a72f4-44c8-5e78-8814-fdc39ca3a3ad@bmrb.wisc.edu> <cade60b5-cdc5-a9ed-68b8-173f394a9ce5@aklaver.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