mirror of
https://github.com/postgres/postgres.git
synced 2025-09-03 15:22:11 +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:
@@ -70,7 +70,6 @@
|
||||
#include "replication/basebackup.h"
|
||||
#include "replication/decode.h"
|
||||
#include "replication/logical.h"
|
||||
#include "replication/logicalfuncs.h"
|
||||
#include "replication/slot.h"
|
||||
#include "replication/snapbuild.h"
|
||||
#include "replication/syncrep.h"
|
||||
@@ -759,7 +758,7 @@ StartReplication(StartReplicationCmd *cmd)
|
||||
/*
|
||||
* read_page callback for logical decoding contexts, as a walsender process.
|
||||
*
|
||||
* Inside the walsender we can do better than logical_read_local_xlog_page,
|
||||
* Inside the walsender we can do better than read_local_xlog_page,
|
||||
* which has to do a plain sleep/busy loop, because the walsender's latch gets
|
||||
* set every time WAL is flushed.
|
||||
*/
|
||||
|
Reference in New Issue
Block a user