@@ -226,6 +226,7 @@ typedef char *(*walrcv_create_slot_fn) (WalReceiverConn *conn,
226
226
const char * slotname , bool temporary ,
227
227
CRSSnapshotAction snapshot_action ,
228
228
XLogRecPtr * lsn );
229
+ typedef pid_t (* walrcv_get_backend_pid_fn ) (WalReceiverConn * conn );
229
230
typedef WalRcvExecResult * (* walrcv_exec_fn ) (WalReceiverConn * conn ,
230
231
const char * query ,
231
232
const int nRetTypes ,
@@ -246,6 +247,7 @@ typedef struct WalReceiverFunctionsType
246
247
walrcv_receive_fn walrcv_receive ;
247
248
walrcv_send_fn walrcv_send ;
248
249
walrcv_create_slot_fn walrcv_create_slot ;
250
+ walrcv_get_backend_pid_fn walrcv_get_backend_pid ;
249
251
walrcv_exec_fn walrcv_exec ;
250
252
walrcv_disconnect_fn walrcv_disconnect ;
251
253
} WalReceiverFunctionsType ;
@@ -276,6 +278,8 @@ extern PGDLLIMPORT WalReceiverFunctionsType *WalReceiverFunctions;
276
278
WalReceiverFunctions->walrcv_send(conn, buffer, nbytes)
277
279
#define walrcv_create_slot (conn , slotname , temporary , snapshot_action , lsn ) \
278
280
WalReceiverFunctions->walrcv_create_slot(conn, slotname, temporary, snapshot_action, lsn)
281
+ #define walrcv_get_backend_pid (conn ) \
282
+ WalReceiverFunctions->walrcv_get_backend_pid(conn)
279
283
#define walrcv_exec (conn , exec , nRetTypes , retTypes ) \
280
284
WalReceiverFunctions->walrcv_exec(conn, exec, nRetTypes, retTypes)
281
285
#define walrcv_disconnect (conn ) \
0 commit comments