Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1afVft-0004VM-5Y for pgsql-hackers@arkaria.postgresql.org; Mon, 14 Mar 2016 16:48:57 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1afVfs-0006Qj-OC for pgsql-hackers@arkaria.postgresql.org; Mon, 14 Mar 2016 16:48:56 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1afVeW-0003Up-UJ for pgsql-hackers@postgresql.org; Mon, 14 Mar 2016 16:47:32 +0000 Received: from out.smtp-auth.no-ip.com ([8.23.224.60]) by magus.postgresql.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1afVeS-0005yG-G5 for pgsql-hackers@postgresql.org; Mon, 14 Mar 2016 16:47:32 +0000 X-No-IP: alvh.no-ip.org@noip-smtp X-Report-Spam-To: abuse@no-ip.com Received: from alvin.alvh.no-ip.org (unknown [186.37.26.26]) (Authenticated sender: alvh.no-ip.org@noip-smtp) by smtp-auth.no-ip.com (Postfix) with ESMTPA id 31559401163; Mon, 14 Mar 2016 09:47:20 -0700 (PDT) Received: by alvin.alvh.no-ip.org (Postfix, from userid 1000) id 85F2E5AF; Mon, 14 Mar 2016 13:40:57 -0300 (CLT) Date: Mon, 14 Mar 2016 13:40:57 -0300 From: Alvaro Herrera To: Simon Riggs Cc: pgsql-hackers@postgresql.org Subject: Re: [COMMITTERS] pgsql: Refactor to create generic WAL page read callback Message-ID: <20160314164057.GA204246@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) X-Pg-Spam-Score: -1.1 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org Simon Riggs wrote: > Refactor to create generic WAL page read callback > > Previously we didn’t have a generic WAL page read callback function, > surprisingly. Logical decoding has logical_read_local_xlog_page(), which was > actually generic, so move that to xlogfunc.c and rename to > read_local_xlog_page(). > Maintain logical_read_local_xlog_page() so existing callers still work. I wonder why we kept logical_read_local_xlog_page at all in this commit. I vote for removing it completely and changing all existing code to use the newer function. If some external module is already calling it for some reason, surely they can simply add #define logical_read_local_xlog_page(a,b,c) read_local_xlog_page(a,b,c) in a compatibility shim. -- Álvaro Herrera http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers