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 1jsrhQ-0005bP-Ds for pgsql-hackers@arkaria.postgresql.org; Tue, 07 Jul 2020 17:48:08 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jsrhP-0005S2-Bz for pgsql-hackers@arkaria.postgresql.org; Tue, 07 Jul 2020 17:48:07 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jsrhP-0005Rv-5L for pgsql-hackers@lists.postgresql.org; Tue, 07 Jul 2020 17:48:07 +0000 Received: from mail-qv1-xf43.google.com ([2607:f8b0:4864:20::f43]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jsrhM-0005Vs-8X for pgsql-hackers@lists.postgresql.org; Tue, 07 Jul 2020 17:48:06 +0000 Received: by mail-qv1-xf43.google.com with SMTP id e3so12886315qvo.10 for ; Tue, 07 Jul 2020 10:48:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=pcZZfIxkHvIs7dzCKFr5aBA59UyXErx1dkAeM97w/q4=; b=jGuzdZBNZ4PDMNPRly97fAmnt2ScvJeGTh9Ujt0gFi5wZplROdP+3SKfcKJ0/5e+Dv 28KnHugws7vXq2U3ykkItePBWjYA6e0O+KYOHLpx/pmlSjJG5I/RiWcZaRFSEmxNW5Cq MEQllBuGXpT9v6uwIvndYnuJWZfVb6psiHjo0cx8tLo4zDRWNqHZJ8yRxM2RukOZQNMt I707DBNXaYR3qjlvsnu5jRonvvv13tYDHLH0UnNNxvcb3wlBQVgecbgTKdSTm/omYkF3 prPfrCzXdcVuXKAcsodxwSYnEkuyY1eg3CocmRmgQPgsDkzydxow7wqlpRL6IpaGfU7t XbEg== 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:cc:subject:message-id:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=pcZZfIxkHvIs7dzCKFr5aBA59UyXErx1dkAeM97w/q4=; b=poiPprKHv705OZfNMYdUQ+B7Rctop3Y6D3h3msRaYTqbEu1oVDsAIO/e86kDGMJHrQ fwiliE5jtSJc4aHp5qPsNLDgim0zpuDave1xcTkm52FkuQruTYsnlq+NY9vXGPqbM80L +w0h4ZMLPr5zf7sEMa2FU265OONuBCulZeASrH9uGK3n0hbJUKIMcEjej72bksvfUCe3 o5LwBk6wsSsWYb8uFab8NnlmjKjPWIHpc1dRK+yRiB79IX8SPx+vtIZEA6B/2RrTC26h Lknp3tzCQpOHG3CR+dWAtefqgkpBXcbBovVeZXDpbbQ0/drbUr4paNmIeaj6pmSTZjS8 QaLA== X-Gm-Message-State: AOAM531D/6NowVX0pjIpGtECoHRNiSu6EmzfyPreLigdYUGPvIXS4X4Y 8TIPj6EWvd9+I7pfZleHJizrMg== X-Google-Smtp-Source: ABdhPJxpznou/nZ+iMQ9q/OVEohki1vNisqyJj2yjnoD6fPIwxErbvBeJbdbYDYb7YVB+MCBrFxVmA== X-Received: by 2002:a05:6214:1927:: with SMTP id es7mr45053381qvb.166.1594144082679; Tue, 07 Jul 2020 10:48:02 -0700 (PDT) Received: from perhan.alvh.no-ip.org ([190.95.18.252]) by smtp.gmail.com with ESMTPSA id z68sm24670149qke.113.2020.07.07.10.48.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jul 2020 10:48:02 -0700 (PDT) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id A8B602A3DFE; Tue, 7 Jul 2020 13:48:00 -0400 (-04) Date: Tue, 7 Jul 2020 13:48:00 -0400 From: Alvaro Herrera To: Kyotaro Horiguchi Cc: amit.kapila16@gmail.com, masao.fujii@oss.nttdata.com, michael@paquier.xyz, pgsql-hackers@lists.postgresql.org Subject: Re: min_safe_lsn column in pg_replication_slots view Message-ID: <20200707174800.GA17240@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20200707030133.GA29468@alvherre.pgsql> User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2020-Jul-06, Alvaro Herrera wrote: > On 2020-Jul-07, Kyotaro Horiguchi wrote: > > Couldn't we move ConvertToXSegs from xlog.c to xlog_ingernals.h and > > use it intead of the bare expression? > > I was of two minds about that, and the only reason I didn't do it is > that we'll need to give it a better name if we do it ... I'm open to > suggestions. In absence of other suggestions I gave this the name XLogMBVarToSegs, and redefined ConvertToXSegs to use that. Didn't touch callers in xlog.c to avoid pointless churn. Pushed to both master and 13. I hope this satisfies everyone ... Masao-san, thanks for reporting the problem, and thanks Horiguchi-san for providing the fix. (Also thanks to Amit and Michael for discussion.) -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services