Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gEeGe-0002fk-1P for pgsql-bugs@arkaria.postgresql.org; Mon, 22 Oct 2018 17:45:28 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gEeGb-0007tg-Rj for pgsql-bugs@arkaria.postgresql.org; Mon, 22 Oct 2018 17:45:25 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gEeGb-0007tO-Hf for pgsql-bugs@lists.postgresql.org; Mon, 22 Oct 2018 17:45:25 +0000 Received: from mail-qt1-x829.google.com ([2607:f8b0:4864:20::829]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gEeGL-0006dB-3M for pgsql-bugs@lists.postgresql.org; Mon, 22 Oct 2018 17:45:24 +0000 Received: by mail-qt1-x829.google.com with SMTP id z9-v6so7069516qto.7 for ; Mon, 22 Oct 2018 10:45:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:subject:message-id:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=qLd0kHMOchBgDujw7sIub4WF2SGyPqXMoHktjARFnEU=; b=QkW9OG975mzuVUiHp/JCh6wg+TrphBglTaxfzpSforq3DfvUeG/BTbh9Q4nrDlnYa0 wu+09pLOA3hVMrj6yIFkAmAIcRO/hZ9UH65SgZlXjRIfXZe+zR2KPB+i64/4aYncMjd7 WW0V3NL4pk3/ElNPkG1a2KIDpjeAffdRds23pmdsBWULxc+o12KsXSYd1XU+LjJXLNGH 6iDHVRvci+4YgAAQkN/ZQwo33OfG4Gafip88kjx6QNyJCodXT0hvA/fl8lxaI+LxF126 r63R1J1QkX3b/8fp2HgBLdYbBeYjpqHIo4vJuMHv3tNPfCJEjruyTT4aGc/45GRzBdlQ 76Eg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=qLd0kHMOchBgDujw7sIub4WF2SGyPqXMoHktjARFnEU=; b=W8VCuHLtUUE1sIIw/rdvzYoD7aOG8ROoqv9ETeAnPS6J2GokehQHAZ7G13dxNVmG5a UcqQNS3QVlu3Ycm10LoKYUUfAIJZxv/SLhXtREDEeYKg4BXrON3cBeK38qSDwScWDfF7 LBkZDMJTVzbLp6qgX7zbLcSTKacGo6QkR+fEvSlvLh3HHedbotxJu5QMwUtoy8p08ZSY 6B3gZQkY09ovW3uRtUQRHNrCMSXigkrbonNpmlZGJlX0oH1pRtlm+/tpwFKuFicBy6zi 1PrZ6U/7X29fkxzDydqh83eA6HxKYROwdksVOZjTDr4y1fgLwm4ghuimVRdwkMq+b/ru LZBA== X-Gm-Message-State: ABuFfojNZFV6j6YYS0FulzadBotdQq2g5zrGChgv3np1ZOwBmX+kuKW4 pLTJPjwwM9b3KMhINoC2mdvnqQ== X-Google-Smtp-Source: ACcGV62kznPb0qhept2ly+UkXt1wu1cuIXXpQflFY30ZcPhiZrurlTG0xSs+TRhvUXMU90ElboX2NQ== X-Received: by 2002:ac8:244:: with SMTP id o4-v6mr2030641qtg.0.1540230308071; Mon, 22 Oct 2018 10:45:08 -0700 (PDT) Received: from alvin.alvh.no-ip.org ([190.121.29.3]) by smtp.gmail.com with ESMTPSA id h25-v6sm5903171qta.89.2018.10.22.10.45.07 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 22 Oct 2018 10:45:07 -0700 (PDT) Received: by alvin.alvh.no-ip.org (Postfix, from userid 1000) id E7161640; Mon, 22 Oct 2018 14:45:04 -0300 (-03) Date: Mon, 22 Oct 2018 14:45:04 -0300 From: Alvaro Herrera To: juanjo.santamaria@gmail.com, pgsql-bugs@lists.postgresql.org Subject: Re: BUG #15438: Standby corruption after "Too many open files in system" error Message-ID: <20181022174504.bwa7435hci7via4y@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <15438-bbe4679a595d795f@postgresql.org> User-Agent: NeoMutt/20180716 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2018-Oct-18, PG Bug reporting form wrote: > The primary was working the whole time and recreating the standby replica, > after configuring the user limits, seems to solve the issue. Hmm, we recently fixed a bug were file descriptors were being leaked, after 10.5 was tagged (commit e00f4b68dc87 [1]) but that was in logical decoding, and the symptoms seem completely different anyway. I'm not sure it would affect you. The epoll_create stuff in latch.c is pretty young though. [1] https://git.postgresql.org/gitweb/?p=postgresql.git;a=commitdiff;h=e00f4b68dc878dcee46833a742844346daa1e3c8 [2] https://git.postgresql.org/gitweb/?p=postgresql.git;a=commitdiff;h=fa31b6f4e9696f3c9777bf4ec2faea822826ce9f -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services