mirror of
https://github.com/postgres/postgres.git
synced 2025-09-02 04:21:28 +03:00
Remove logical_read_local_xlog_page
It devolved into a content-less wrapper over read_local_xlog_page, with nothing to add, plus it's easily confused with walsender's logical_read_xlog_page. There doesn't seem to be any reason for it to stay. src/include/replication/logicalfuncs.h becomes empty, so remove it too. The prototypes it initially had were absorbed by generated fmgrprotos.h. Discussion: https://postgr.es/m/20191115214102.GA15616@alvherre.pgsql
This commit is contained in:
@@ -14,11 +14,11 @@
|
||||
|
||||
#include "access/htup_details.h"
|
||||
#include "access/xlog_internal.h"
|
||||
#include "access/xlogutils.h"
|
||||
#include "funcapi.h"
|
||||
#include "miscadmin.h"
|
||||
#include "replication/decode.h"
|
||||
#include "replication/logical.h"
|
||||
#include "replication/logicalfuncs.h"
|
||||
#include "replication/slot.h"
|
||||
#include "utils/builtins.h"
|
||||
#include "utils/inval.h"
|
||||
@@ -152,7 +152,7 @@ create_logical_replication_slot(char *name, char *plugin,
|
||||
ctx = CreateInitDecodingContext(plugin, NIL,
|
||||
false, /* just catalogs is OK */
|
||||
restart_lsn,
|
||||
logical_read_local_xlog_page, NULL, NULL,
|
||||
read_local_xlog_page, NULL, NULL,
|
||||
NULL);
|
||||
|
||||
/*
|
||||
@@ -424,7 +424,7 @@ pg_logical_replication_slot_advance(XLogRecPtr moveto)
|
||||
ctx = CreateDecodingContext(InvalidXLogRecPtr,
|
||||
NIL,
|
||||
true, /* fast_forward */
|
||||
logical_read_local_xlog_page,
|
||||
read_local_xlog_page,
|
||||
NULL, NULL, NULL);
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user