Re: [COMMITTERS] pgsql: Refactor to create generic WAL page read callback

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: [COMMITTERS] pgsql: Refactor to create generic WAL page read callback
Дата
Msg-id 20160314164057.GA204246@alvherre.pgsql
обсуждение исходный текст
Список 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



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Teodor Sigaev
Дата:
Сообщение: Re: proposal: function parse_ident
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: [patch] Proposal for \crosstabview in psql