From: | Alvaro Herrera <alvherre(at)2ndquadrant(dot)com> |
---|---|
To: | Simon Riggs <simon(at)2ndQuadrant(dot)com> |
Cc: | pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: [COMMITTERS] pgsql: Refactor to create generic WAL page read callback |
Date: | 2016-03-14 16:40:57 |
Message-ID: | 20160314164057.GA204246@alvherre.pgsql |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers pgsql-hackers |
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
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2016-03-14 16:52:01 | pgsql: pg_stat_get_progress_info() should be marked STRICT. |
Previous Message | Tom Lane | 2016-03-14 15:32:02 | pgsql: Add missing NULL terminator to list_SECURITY_LABEL_preposition[] |
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2016-03-14 16:52:17 | Re: pg_stat_get_progress_info(NULL) blows up |
Previous Message | Teodor Sigaev | 2016-03-14 16:39:29 | Re: proposal: function parse_ident |