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 1fiPVA-00041m-Me for pgsql-general@arkaria.postgresql.org; Wed, 25 Jul 2018 19:31:13 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fiPV8-0003ON-Rr for pgsql-general@arkaria.postgresql.org; Wed, 25 Jul 2018 19:31:10 +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 1fiPV7-0003OD-MG for pgsql-general@lists.postgresql.org; Wed, 25 Jul 2018 19:31:10 +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 1fiPV2-0003Pw-N3 for pgsql-general@lists.postgresql.org; Wed, 25 Jul 2018 19:31:09 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 0F93B20E24; Wed, 25 Jul 2018 15:31:03 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Wed, 25 Jul 2018 15:31:03 -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=6iBdURlb17d5IM7rDJj5K+Fg1gNOl 7mYe1wWLwIIovk=; b=wakFgKS87Gf6u3wt9+qndJT2jTC9v/rWgl7oLHwoXvIBT 1Frl+WuigE5jj6WxYdrIeDapyVaV/OzRVQLHvWIHVh10ecxYgmTXlMDeLnyvmQxq QiwAPcIk3xYVOZVojGK/9g/taq6s8IPMNyBO3BrGj6Z/HuRV+bek9+I/NL4SvUog TZrdlwDCr5Mr7iC25jLb7DuQstkp4kuS3RDARppGn3+RK7Q2FTkdINACCLyLWEdm XypPomY7UK9ZHwBfmoDTn3UUKK6Keu81l6e8/InpilFK4KfAMSmltxP6uQder8tH UPbbQJjb1Hw55geMUpOvFsg2OK2BgScwPiOz+pBhw== 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=6iBdUR lb17d5IM7rDJj5K+Fg1gNOl7mYe1wWLwIIovk=; b=cCgkmmCNb7aARgei4TYtHS HGgEbmGsSrWb4ve48e8Pre1DTkrx3qVaEXqBV+qpJCWS0Vvk9dP/cbQkYbqKvr/V vbC0hzDTsrv1g52iSFpyv39q8Jl/FPnwnmwfvyRz9rEIZH1H/0GNmsilq/h/x1Wz 7t4YoE6hedsABpOC63yqRU/QlTtaI/TXqJPZJzOPf5ZdTVKo6CQi5a6M1Tg9/Rw1 +GZWgZZBz0VhNAiw4lBQzjUWLLNUm0ODWb0XhqPgc8E8ih1rwtrK+CuAdzErvZrw EK+swbwH7XEmeZLSOq9CAJXtIaLcJZlWdiX5pGMXoQgvDQbL34oluTndueIUJgNQ == X-ME-Proxy: X-ME-Sender: Received: from [192.168.1.3] (unknown [71.212.134.181]) by mail.messagingengine.com (Postfix) with ESMTPA id 1E45310269; Wed, 25 Jul 2018 15:31:02 -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: <1c539619-7b72-3669-81cd-2a55352b1008@aklaver.com> Date: Wed, 25 Jul 2018 12:31:01 -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: 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 11:10 AM, Dimitri Maziuk wrote: > On 07/25/2018 11:16 AM, Adrian Klaver wrote: > >> Where you using pg_export_snapshot() by any chance?: > > If it's not in chapter 31 of TFM then I have not touched it. The only > notable thing I changed from 31.9 quickstart is that replica identity is > full on all tables (the data's a mess). So no. > >> Where there any relevant error messages in the log before the database >> hung? > > Do you seriously expect me to know what "relevant" is? ;) -- It's 7 > days' worth of Generally speaking relevancy increases the closer you get to the fall over event. So we are most interested in entries close to the point where the database stopped/failed. > >> 2018-07-23 09:43:12.851 CDT [7975] STATEMENT: COPY macromolecules."Entity_common_name" TO STDOUT >> 2018-07-23 09:43:12.925 CDT [7982] LOG: logical decoding found consistent point at 19/E6942408 >> 2018-07-23 09:43:12.925 CDT [7982] DETAIL: There are no running transactions. >> 2018-07-23 09:43:12.935 CDT [7982] ERROR: permission denied for schema macromolecules >> 2018-07-23 09:43:12.935 CDT [7982] STATEMENT: COPY macromolecules."Assembly" TO STDOUT >> 2018-07-23 09:43:13.034 CDT [7987] LOG: logical decoding found consistent point at 19/E6942440 >> 2018-07-23 09:43:13.034 CDT [7987] DETAIL: There are no running transactions. >> 2018-07-23 09:43:13.044 CDT [7987] ERROR: permission denied for schema macromolecules >> 2018-07-23 09:43:13.044 CDT [7987] STATEMENT: COPY macromolecules."Spectral_transition" TO STDOUT >> 2018-07-23 09:43:13.135 CDT [7990] LOG: logical decoding found consistent point at 19/E6942478 >> 2018-07-23 09:43:13.135 CDT [7990] DETAIL: There are no running transactions. >> 2018-07-23 09:43:13.145 CDT [7990] ERROR: permission denied for schema macromolecules >> 2018-07-23 09:43:13.145 CDT [7990] STATEMENT: COPY macromolecules."Assembly_db_link" TO STDOUT > > that ends with > >> 2018-07-23 09:45:40.280 CDT [6032] LOG: database system was interrupted; last known up at 2018-07-06 17:04:28 CDT >> 2018-07-23 09:45:40.281 CDT [6033] FATAL: the database system is starting up >> 2018-07-23 09:45:40.282 CDT [6034] FATAL: the database system is starting up > ... ad infinitum ... > > Would "permission denied" be relevant? Logical decoding is something I am still learning. The "permission denied" would to me be relevant only to the extent that it seems to be provoking: "LOG: logical decoding found consistent point at 19/E6942440" DETAIL: There are no running transactions." Others with more experience in this area would need to fill whether that might account for the 13 million files in the ~snapshot/ directory. > > (Not sure where that is coming from: I did initial sync as postgres then > altered it to replication user. Can't track it down now since the > database is dead.) > In your previous post you said: "(To somebody else as I'm obviously not turning logical replication back on until I know it won't kill my server again.) " So what are you working off now? -- Adrian Klaver adrian.klaver@aklaver.com