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.89) (envelope-from ) id 1iCqpv-0000LP-W9 for pgsql-hackers@arkaria.postgresql.org; Tue, 24 Sep 2019 19:51:00 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iCqpu-0004d8-Lh for pgsql-hackers@arkaria.postgresql.org; Tue, 24 Sep 2019 19:50:58 +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 1iCqpu-0004cH-5m for pgsql-hackers@lists.postgresql.org; Tue, 24 Sep 2019 19:50:58 +0000 Received: from mail-qt1-x841.google.com ([2607:f8b0:4864:20::841]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1iCqpr-0001Av-Ix for pgsql-hackers@postgresql.org; Tue, 24 Sep 2019 19:50:57 +0000 Received: by mail-qt1-x841.google.com with SMTP id 3so3670422qta.1 for ; Tue, 24 Sep 2019 12:50:55 -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=qBvf8JDjd9Yw1hhUI0tzJie/69wKuOMR7c8FFv8zPkA=; b=RL9Y0Mggv4Cb0AKMiLLF/COBDcs7NfTQ/pc39NZ1tgUDWatYCGDZtiDdKZ/B5+bwUz n+/0B/vhslLAioxI/96BBYuU2gaQVcjvbYNuceA2MMYhV/9mr1Zb6gWls/2AbTzOM7Y9 lwKsyf35RSsk+cIv5gjX7bGtAeaQAM2EDic10M12WXECUAPDPqOXn8tEitomqsRZ3nED 2mPrHIieuXHcKkDppV7VSlkqmW4QbKBiCdQYRRAbgCXs9M6EtX36+VRYpTaObKjM+O/x zmPOW81U48PVb2Wv42tByYnotrK664Bf1eEXKDdfuaNyPTRDklWSSnzUFL0KekBQxy/h NECw== 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=qBvf8JDjd9Yw1hhUI0tzJie/69wKuOMR7c8FFv8zPkA=; b=sOhN+HGkDimmjyXkQcbTGdsiD9mUNLQwXRYjWCix5yxKYvcj0gLytnNJDRyXMgFG9D DK+6J3btts61eGwVCkkSvj7w7zgfYdBP/AXrqjN6XTazAvEXlx2NNrGlbGDCRRjU/4qO TRATM2mSc9mCspySAwDtxSJEqsYTqLsQ3GfgCEsVqsdOcQGhzeELbYoJj8FTxC8YqGKx 5wlHq8ttMkW4lIihLkjgX8D/+R38S0qFAz7GNyP/fBfDmK6qNo62oZFhDYeW3FzdBqae Ugn9gjuzsG1mD+iGwkLFOz/J1rboPeqAccFk1pu3kNJo5qOoBBPsS8zv8gRQpfE9LMId 3zHQ== X-Gm-Message-State: APjAAAXxuj8s7VDnnqca7dJpzwAiJJlO+3wY3Tt+3ahWOug8e+T5aLK1 YazsFNwcli8oZ78HeeyhjgAGqg== X-Google-Smtp-Source: APXvYqydo8gy9vnHbVZ3kbpWaCKY0gFnyhG0LG6eYvrKjVJOG2IqVBFXmHdnhAauDqg41m9q+zQONQ== X-Received: by 2002:a0c:e0ca:: with SMTP id x10mr4038549qvk.155.1569354654624; Tue, 24 Sep 2019 12:50:54 -0700 (PDT) Received: from nimloth.alvh.no-ip.org ([190.121.29.3]) by smtp.gmail.com with ESMTPSA id b192sm1502955qkg.39.2019.09.24.12.50.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Sep 2019 12:50:53 -0700 (PDT) Received: by nimloth.alvh.no-ip.org (Postfix, from userid 1000) id 31C7312069D; Tue, 24 Sep 2019 16:50:51 -0300 (-03) Date: Tue, 24 Sep 2019 16:50:51 -0300 From: Alvaro Herrera To: Antonin Houska Cc: Thomas Munro , Robert Haas , "pgsql-hackers@postgresql.org" Subject: Re: Attempt to consolidate reading of XLOG page Message-ID: <20190924195051.GA10509@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <83392.1569339204@antos> User-Agent: Mutt/1.9.4 (2018-02-28) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2019-Sep-24, Antonin Houska wrote: > Alvaro Herrera wrote: > > If you don't have any strong dislikes for these changes, I'll push this > > part and let you rebase the remains on top. > > No objections here. oK, pushed. Please rebase the other parts. I made one small adjustment: in read_local_xlog_page() there was one *readTLI output parameter that was being changed to a local variable plus later assigment to the output struct member; I changed the code to continue to assign directly to the output variable instead. There was an error case in which the TLI was not assigned to; I suppose this doesn't really change things (we don't examine the TLI in that case, do we?), but it seemed dangerous to leave like that. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services