Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jY41b-00058x-GT for pgsql-hackers@arkaria.postgresql.org; Mon, 11 May 2020 08:42:59 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jY41Z-00083f-1O for pgsql-hackers@arkaria.postgresql.org; Mon, 11 May 2020 08:42:57 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jY41Y-00082i-M4 for pgsql-hackers@lists.postgresql.org; Mon, 11 May 2020 08:42:56 +0000 Received: from mail-wr1-x443.google.com ([2a00:1450:4864:20::443]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jY41R-0001Ms-Le for pgsql-hackers@postgresql.org; Mon, 11 May 2020 08:42:55 +0000 Received: by mail-wr1-x443.google.com with SMTP id k1so9824426wrx.4 for ; Mon, 11 May 2020 01:42:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec-at.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:in-reply-to:references:comments:mime-version :content-id:date:message-id; bh=rKEP7kYG2rFzhCAHhmPjbUcjTKhcjJwRxj6IDdDGNo8=; b=gIgP7n4zXwVAYrgofIG77ebGNyJl5RFRmTEntMp0jtn8csHJFrKPUeULRNjSNfDNQZ 7/AKIikeULu/7E6/MBIMjBxXgSf+24eUtofjtbkJ0na/7slUrtfaOTu+e7US0s6UbZXG cvUSDXy0xpGrXEKhjT5woAwkxib4m5r7kn5PmB/RHW4X1MlpkxVEyVhpyKM2VMErKZvb 5vwzX1ps5F/P75Cc6cuA6T+OZSBiyiks7HBCE8trTiJMfMHsKdj4UrsDlNx2ZSE3UP2R Lc+rfBNwRTYNHJKvMEWJcgbanu0ETQMiB0AF64leS+eTaulVELW39b6kA4eFbkB5+LFx syvQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references :comments:mime-version:content-id:date:message-id; bh=rKEP7kYG2rFzhCAHhmPjbUcjTKhcjJwRxj6IDdDGNo8=; b=HUv2MfOOXQeRT8TsanBTUEMah0M9dodfKHPl0Qyr07mPfJgWkV/9ZVPgdMrC9ti/TQ ub3mAivz0ClzyJrTWYIu5Du+uS+8liXhT1FaT3jJper9xTcucLV574RAWAhrWCe/g33k /ahIhudqfW/hHx/4F0LOkSulHUIi3FR0miCNEDL6U9STZga/D0zUugXkdtsH0JFFYhC2 RpAMH2vndjL0QXbaRycPL5itRiNRN8V9QePG1wO0/NNSc750HgM41TDfA+CBWrZ4Keri X2c6E0gk7QZNC7DJp/7S2j+ECCbKM+XUl2K+mddVxRMpHd/1TzaqutG2WhB4wvwAwLLz bEyA== X-Gm-Message-State: AGi0PuZyWO3XlyA55tDo7wCsBwnGh+EzAhf+eYQ0Bpne0p/fRWsIZaq0 pjWWoWFggoiAbGVv+x2puJxfIA== X-Google-Smtp-Source: APiQypKvqrbSINtcLNRxHOuMyhYW/yXdTaqY6R2exelURtwvK415sVvEDyYlAK+KrjAv8lN2JaSKHg== X-Received: by 2002:adf:db46:: with SMTP id f6mr3764951wrj.80.1589186567917; Mon, 11 May 2020 01:42:47 -0700 (PDT) Received: from antos ([77.87.240.5]) by smtp.gmail.com with ESMTPSA id h20sm5414760wma.6.2020.05.11.01.42.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 May 2020 01:42:47 -0700 (PDT) From: Antonin Houska To: Alvaro Herrera cc: Kyotaro Horiguchi , andres@anarazel.de, michael@paquier.xyz, pgsql-hackers@postgresql.org Subject: Re: 2pc leaks fds In-reply-to: <20200508210916.GA23288@alvherre.pgsql> References: <20200508210916.GA23288@alvherre.pgsql> Comments: In-reply-to Alvaro Herrera message dated "Fri, 08 May 2020 17:09:16 -0400." X-Mailer: MH-E 8.6+git; nmh 1.7; GNU Emacs 26.3.50 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <28249.1589186654.1@antos> Date: Mon, 11 May 2020 10:44:14 +0200 Message-ID: <28250.1589186654@antos> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Alvaro Herrera wrote: > On 2020-May-08, Kyotaro Horiguchi wrote: > > > I agree to the direction of this patch. Thanks for the explanation. > > The patch looks good to me except the two points below. > > Thanks! I pushed the patch. I tried to follow the discussion but haven't had better idea. This looks better than the previous version. Thanks! While looking at the changes, I've noticed a small comment issue in the XLogReaderRoutine structure definition: * "tli_p" is an input/output argument. XLogRead() uses it to pass the The XLogRead() function has been renamed to WALRead() in 0dc8ead4. (This incorrect comment was actually introduced by that commit.) -- Antonin Houska Web: https://www.cybertec-postgresql.com