Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fiMSV-0002GS-95 for pgsql-general@arkaria.postgresql.org; Wed, 25 Jul 2018 16:16:16 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fiMST-0000Oe-Kn for pgsql-general@arkaria.postgresql.org; Wed, 25 Jul 2018 16:16:13 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fiMSR-0000OW-UF for pgsql-general@lists.postgresql.org; Wed, 25 Jul 2018 16:16:13 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fiMSN-0007V1-8F for pgsql-general@lists.postgresql.org; Wed, 25 Jul 2018 16:16:11 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 325B021F23; Wed, 25 Jul 2018 12:16:05 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Wed, 25 Jul 2018 12:16:05 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=fm3; bh=t29TPI9t+SdLkjToXbn1RHRn8XE6+ MCi6f7vAMrYjbo=; b=Y3QFOFClT+OOPEPtCX0aq+s4JvsJuek0ZyDkToL+4jgin B5DjwwgqN4NLm4kK1oTKDY3Ni79q4uq7nbGMB9YGPOurJH4c7xQ6lhluhxJadlNO hhdr2VpdRk5or8X3bq5htaUHarueT3mD+ILROn1VSDmaZvyWdJTAO8hLnHuyQjZ0 024BMSJIL/v9JDvsKxOeW0zPi5KjkcYtu3fJStgbDju6I6Z6xvFLy+9fWJTR2jgd /peQe0vhdnHvMkKHoy2O90t+mDtwG2SKlJyJtHpNcELKHMStIjHqrhboy0W4jpCF JsOp9f0amdnA8dSEu7Yh2Jx9ubFvdQ8058jUjsGbw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=t29TPI 9t+SdLkjToXbn1RHRn8XE6+MCi6f7vAMrYjbo=; b=mKFYONadrJMZAqwRTDJF1I ULDLuFeYmd12fcHQCY2JdQcxfHIuB6/KI/Ueakf9hg+2zr1dNxMlKueclSkO6OSg ZV9+qwrJHy1fX/ToEmZ1kRYP0A79YXcD9GPfzC26pb4mkXMtc5g/Yf598s6S3XOm BAQUCwR0To8UkFt1/EsuprKW9DpwuMhxWjHF/Zk3lvhpzHtuJFMELxF+Q435307s yOx8yrG/SZMv5MM3WfMvsUejtQQ1o7x9qoapQFBvYmSwuB6UTMJv0OfMyj8BkiJq 948siHx1usTG0JmnI7UFeihidSZsxhzVu7B1MQ7VstFQrcbBpQRS+b8hFfVHcC/g == X-ME-Proxy: X-ME-Sender: Received: from ranger.suse (74-93-105-186-washington.hfc.comcastbusiness.net [74.93.105.186]) by mail.messagingengine.com (Postfix) with ESMTPA id 42D0BE48FF; Wed, 25 Jul 2018 12:16:04 -0400 (EDT) Subject: Re: logical replication snapshots To: Dimitri Maziuk , pgsql-general@lists.postgresql.org References: <20180724172115.ztthbxmfgucnuuq3@alvherre.pgsql> <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> From: Adrian Klaver Message-ID: Date: Wed, 25 Jul 2018 09:16:03 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <9b9a72f4-44c8-5e78-8814-fdc39ca3a3ad@bmrb.wisc.edu> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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