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 1lTvRh-0006HF-Sa for pgsql-hackers@arkaria.postgresql.org; Tue, 06 Apr 2021 23:49: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 1lTvRf-0003BB-BE for pgsql-hackers@arkaria.postgresql.org; Tue, 06 Apr 2021 23:49: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 1lTvRf-0003B4-4F for pgsql-hackers@lists.postgresql.org; Tue, 06 Apr 2021 23:49:19 +0000 Received: from mail-qt1-x82a.google.com ([2607:f8b0:4864:20::82a]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1lTvRY-0003Dx-Np for pgsql-hackers@postgresql.org; Tue, 06 Apr 2021 23:49:18 +0000 Received: by mail-qt1-x82a.google.com with SMTP id j7so12517085qtx.5 for ; Tue, 06 Apr 2021 16:49:12 -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=YVx6xoP1ir4Fok+Ua+yGs+EMGs7lw+cD6vJdo5ynO5o=; b=WFDGUz5fWJM0cBFES4vl2zJzzkNKe3gyqICH7NlW2r2lLldb/Jie1HjYwccyg96wj7 uSLM/mnadjObDAd0cbr3HZXz/KQgvt/qSpoVRv/JBd85kpl3p9fLiUM3UANF/rAOy5/G eVDj8x1ocTjjMG+PP2/xM0VhJiBRg1HCfGTSzs02NrJ8N7Xi6ijiSlWUY8Lqn12VC60F L3QiSfb91vA2PfHUSbVQhLnjqmVb8mb8iu2fYWUY+H2NcDncJu/+jD6x2hrmp6V2X2mr mrEirYRxbjTotB0jnP0cSoZ0nxl8Htym52dHTMLy9aXTsz6PjYO6645vO7p6gw6wBuIW 1YfA== 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=YVx6xoP1ir4Fok+Ua+yGs+EMGs7lw+cD6vJdo5ynO5o=; b=Z+7JU12WqW+6XM4u08XPemo8AWiRirWg2O1IqWFjtPpZMi38ACR2axSEwLJAANlaqR uqUeVq/88PJIdnfJPT7kS6qgAmWCgUDXs1Qrq0zKz8ADFK8psUvEqUDJuhcav+oM0V1G w6HNfmhfxda55uK4320wsSNeNSQ52Uxp3gkEqQRkv5qwysX1fMQgxteabCN4X26ixSKm sDjU8oDHySJB+cZ+4qi/zvioFoLapuIu/9eaFx+VZmDbc/ZhcEGm6AOuEDQdjG3pUQ6L 6Vk7pfDehqo9SY0usNSTMN/tr+JdorbZGD0ZAOgJxg+pVo3XuQNTmUjGCkwaTXQUPlwZ wDBg== X-Gm-Message-State: AOAM5312C3/56sMKiMHLXEY5IOjfnyOZavDYm95uY92bcAzYL1HzF4Xt iFFOoC/HPyTdvg/zRPjgmyWzEQ== X-Google-Smtp-Source: ABdhPJxzYEFVg4lYBTU+n8ufurPKvaP4WCn/2DHtjA8cDklfzfGJEzEZmYXSp39UZPjUlxqDeaeQ2w== X-Received: by 2002:ac8:1009:: with SMTP id z9mr430848qti.128.1617752950566; Tue, 06 Apr 2021 16:49:10 -0700 (PDT) Received: from perhan.alvh.no-ip.org ([190.95.19.95]) by smtp.gmail.com with ESMTPSA id i8sm15400020qtj.16.2021.04.06.16.49.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Apr 2021 16:49:09 -0700 (PDT) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id C77CB2A0A89; Tue, 6 Apr 2021 19:49:07 -0400 (-04) Date: Tue, 6 Apr 2021 19:49:07 -0400 From: Alvaro Herrera To: Thomas Munro Cc: Kyotaro Horiguchi , takashi.menjo@gmail.com, Craig Ringer , Heikki Linnakangas , Andres Freund , pgsql-hackers , takashi.menjou.vg@hco.ntt.co.jp Subject: Re: Remove page-read callback from XLogReaderState. Message-ID: <20210406234907.GA19311@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: Archived-At: Precedence: bulk On 2021-Apr-07, Thomas Munro wrote: > On Wed, Apr 7, 2021 at 11:18 AM Alvaro Herrera wrote: > > BTRW it's funny that after these patches, "xlogreader" no longer reads > > anything. It's more an "xlog interpreter" -- the piece of code that > > splits individual WAL records from a stream of WAL bytes that's caller's > > responsibility to obtain somehow. But (and, again, I haven't read this > > patch recently) it still offers pieces that support a reader, in > > addition to its main interface as the interpreter. Maybe it's not a > > totally stupid idea to split it in even more different files. > > Yeah, I like "decoder", and it's already called that in some places... Yeah, that works ... -- Álvaro Herrera 39°49'30"S 73°17'W "Los trabajadores menos efectivos son sistematicamente llevados al lugar donde pueden hacer el menor daño posible: gerencia." (El principio Dilbert)