Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.92) (envelope-from ) id 1jEHpj-0008IS-6R for pgsql-hackers@arkaria.postgresql.org; Tue, 17 Mar 2020 19:24:59 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1jEHph-0001NO-W5 for pgsql-hackers@arkaria.postgresql.org; Tue, 17 Mar 2020 19:24:57 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1jEHph-0001NE-Gl for pgsql-hackers@lists.postgresql.org; Tue, 17 Mar 2020 19:24:57 +0000 Received: from mail-qv1-xf41.google.com ([2607:f8b0:4864:20::f41]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jEHpc-0005te-F0 for pgsql-hackers@postgresql.org; Tue, 17 Mar 2020 19:24:56 +0000 Received: by mail-qv1-xf41.google.com with SMTP id ca9so11548267qvb.9 for ; Tue, 17 Mar 2020 12:24:52 -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=QqhqeLbgPpSTUSQ/Rf6GNlqo4tmFP74I1Rf6Rti2yAo=; b=csHZYKsHYRTvjhClS7cikpOWohwqDQaFhY9mLE6pny6Hd9UjyNYCth1CxFdhr4ultl vQq3wHG8u9cQotSrndbKQJaFxuEUVuk0/uJvbAx7yYSxYtCkQyMY/oG01wfL5eU7RgGY YgNfgwVHdWW5M3ZoC9W7F/fQi8zGWeVMRZO8N/xWkf+uqXRTOAxIZd3/uavdYjg+Wtfd mftYAmePB8QLjrEPj0Z6f1cl1X1Z3xZpxOsQEZdCSEY+emkXl7c+po6Ky+qtN9OhBWkl 6L9XNz6sGmA4xlgSewZSkmCF3+Jam6zKY0h2xfeg9+z4g17JeWxjWHCT2M0sLfo6pKDF qU4g== 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=QqhqeLbgPpSTUSQ/Rf6GNlqo4tmFP74I1Rf6Rti2yAo=; b=nLidsR/M50dBL0j4yge3iaDkPd96lpv1S+213x7YZPl0cdEMpMKh5qpcdsEXdVfC1H xELpGD731+rYvFVsIRecBxDCONW1bk8imBw+o8Ufp2zT1CrMGqqLZQpiG9uZ+DsSRezs lkf7Ksc21H+Fdp7XGXOYhRoFHXqc9yxIz4ivoW+I05hTUOKr1dsj0HNqManwOsjmU3Vc yteWuRuBFckeHtObP7id2XxGunT2a3Zc3X9ZP4kj1kpz/Iv/LV9NGM3GTYaYJHKfOFHo q8K62YXaLXchHksqBqR2OEerV8J4k7+p7vxkFrcS05VupXB6b6DejoBRDKKlh6DKLt8x 2ThQ== X-Gm-Message-State: ANhLgQ2h3+Eh2bYjjV9nb0NfX2LpKPCw80HSmN14p/IhsFdz/8DtT+Vo /NWH77ELz2cNR8Ptg5qpXSKakw== X-Google-Smtp-Source: ADFU+vv6VkCguqDaXEvvPDLZcVuS8TRHxcxeBZPwhIfqOQ/y7AaU310YldGDmRCxiOwci+xp1W7z1g== X-Received: by 2002:ad4:500c:: with SMTP id s12mr776306qvo.138.1584473091241; Tue, 17 Mar 2020 12:24:51 -0700 (PDT) Received: from nimloth.alvh.no-ip.org ([191.126.227.205]) by smtp.gmail.com with ESMTPSA id m18sm3035921qtc.89.2020.03.17.12.24.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Mar 2020 12:24:50 -0700 (PDT) Received: by nimloth.alvh.no-ip.org (Postfix, from userid 1000) id 1662B3007EA; Tue, 17 Mar 2020 16:24:48 -0300 (-03) Date: Tue, 17 Mar 2020 16:24:48 -0300 From: Alvaro Herrera To: Masahiko Sawada Cc: Arseny Sher , PostgreSQL Hackers Subject: Re: logical copy_replication_slot issues Message-ID: <20200317192448.GA14979@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Thanks Arseny and Masahiko, I pushed this patch just now. I changed some comments while at it, hopefully they are improvements. On 2020-Mar-09, Masahiko Sawada wrote: > ctx = CreateInitDecodingContext(plugin, NIL, > - false, /* do not build snapshot */ > + false, /* do not build data snapshot */ > restart_lsn, > logical_read_local_xlog_page, NULL, NULL, > NULL); > > I'm not sure this change makes the comment better. Could you elaborate > on the motivation of this change? I addressed this issue by adding a comment in CreateInitDecodingContext to explain the parameter, and then reference that comment's terminology in this call. I think it ends up clearer overall -- not that this whole area is at all particularly clear. Thanks again. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services