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 1jv2cn-00032p-0f for pgsql-hackers@arkaria.postgresql.org; Mon, 13 Jul 2020 17:52:21 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jv2cl-000210-V8 for pgsql-hackers@arkaria.postgresql.org; Mon, 13 Jul 2020 17:52:19 +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 1jv2cl-00020t-Ku for pgsql-hackers@lists.postgresql.org; Mon, 13 Jul 2020 17:52:19 +0000 Received: from mail-qt1-x842.google.com ([2607:f8b0:4864:20::842]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jv2ci-0005ji-W2 for pgsql-hackers@lists.postgresql.org; Mon, 13 Jul 2020 17:52:19 +0000 Received: by mail-qt1-x842.google.com with SMTP id b25so10657300qto.2 for ; Mon, 13 Jul 2020 10:52:16 -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=86bYWbJ8zxiK8Bu3PGmbrZVG+xC+mx7fngulwq+M4dU=; b=DGM4EsyEaPrsWIym7FyuCZo7w+rOR1tI67xD74rzVALm3GIl+re7pRTr8JRlN8eZwZ q7tkhSon07A3hOX3rEwpLBjxFQhKTjIwIOs7LhhHe4Tx1UYekfCgrQZ3wN514RSIpgSe uXS7LPQXcGyPfuxs+fRZ6WAjS0isl4YT+uutJ0bP/I0AjcuivUj4+i7pBSelOrQnDTYp psEByK8eCLpv97pixVJz3pPXDD4anGDYwihGm8opK66uDbt7Vd/VTX/88qkS/QC8n8hu 1g8Qw4QrJNBALi3QOqCf28MEmQsGCbNKdT4Zu/SVhGpZm4UZSkfEwmu/N4CilIm8mXCs m+hA== 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=86bYWbJ8zxiK8Bu3PGmbrZVG+xC+mx7fngulwq+M4dU=; b=M5YkBMu8BFc0EhTCe8rgwesVg+YU3Ze3v4BbgMyh/ZMaEU+kw/gMaVI/sz9cRZfd/r CKdOIxwe40uxz1A5IzSBKcxT6B+l7jrPlKuLBRxpdRzeLD3zGdQrJ9S4ZaWfcHsViFWx +8umwzDY4v6ZYp/gCesk9tuj2hyNdaIhuyhX7mRiw8/IPJO3s6Ft8pnUn2DnSuPe1lIo eQGJZ7kgT6TfGkiYiayF5Of/UTLy+uS2dDbE/x9aVPwS3T1wBi/v8qsiy2i8CHxocDER k9aQrUQyyctPNorZ0Pp7JDurKSGz+SHI8zNzCy5bx6Czrmo9ajRKbqRw3h4uUPZmIiWO W92w== X-Gm-Message-State: AOAM533lBxSXpsET0J2zy/xAdiZ9WHQk4OeDLXtniyBQQA/fP3Zs6rfb amogbkrS6XEpJQPahIuW2u864Q== X-Google-Smtp-Source: ABdhPJyYv+o2OuQ7mz1hu71/dVMDkAUwh2ZfqZ1/Gn0C/yLNjBLCkSAXLZwKIg7UqYVRVQVWcP5C7A== X-Received: by 2002:aed:3305:: with SMTP id u5mr459111qtd.325.1594662735048; Mon, 13 Jul 2020 10:52:15 -0700 (PDT) Received: from perhan.alvh.no-ip.org ([190.95.19.47]) by smtp.gmail.com with ESMTPSA id v184sm19970054qki.12.2020.07.13.10.52.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Jul 2020 10:52:14 -0700 (PDT) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 4D91B2A18A9; Mon, 13 Jul 2020 13:52:12 -0400 (-04) Date: Mon, 13 Jul 2020 13:52:12 -0400 From: Alvaro Herrera To: Tom Lane Cc: pgbf@twiska.com, Kyotaro Horiguchi , masao.fujii@oss.nttdata.com, pgsql-hackers@lists.postgresql.org Subject: Re: min_safe_lsn column in pg_replication_slots view Message-ID: <20200713175212.GA29166@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20200713172356.GA446@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-13, Alvaro Herrera wrote: > A much more sensible answer is to initialize the segno to the segment > currently being written, as in the attached. Ran the valgrind test locally and it passes. Pushed it now. Thanks, -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services